[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Re: [1.9] unpack("N")

From: GOTOU Yuuzou <gotoyuzo@...>
Date: 2004-11-14 06:38:07 UTC
List: ruby-core #3730
Hi,

In message <200411131535.iADFZvr02293@moulon.inra.fr>,
 `ts <decoux@moulon.inra.fr>' wrote:
> uln% ./ruby -ve 'p "\000\000\000\001".unpack("N")'
> ruby 1.9.0 (2004-11-12) [x86_64-linux]
> [0]
> uln% 

Could you try this patch?
(I tested it on i386 and x86_64 NetBSD.)

--- pack.c	10 Nov 2004 07:16:24 -0000	1.74
+++ pack.c	14 Nov 2004 06:26:53 -0000
@@ -253,11 +253,11 @@ endian()
 #undef ntohl
 #undef htons
 #undef htonl
+#endif
 #define ntohs(x) swaps(x)
 #define ntohl(x) swapl(x)
 #define htons(x) swaps(x)
 #define htonl(x) swapl(x)
-#endif
 #define ntohf(x) swapf(x)
 #define ntohd(x) swapd(x)
 #define htonf(x) swapf(x)

-- 
gotoyuzo

In This Thread