ruby-changes:2081
From: ko1@a...
Date: 30 Sep 2007 04:33:27 +0900
Subject: [ruby-changes:2081] akr - Ruby:r13572 (trunk): * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not
akr 2007-09-30 04:33:03 +0900 (Sun, 30 Sep 2007) New Revision: 13572 Modified files: trunk/ChangeLog trunk/bignum.c Log: * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not defined. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13572&r2=13571 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bignum.c?r1=13572&r2=13571 Index: ChangeLog =================================================================== --- ChangeLog (revision 13571) +++ ChangeLog (revision 13572) @@ -1,3 +1,8 @@ +Sun Sep 30 04:30:55 2007 Tanaka Akira <akr@f...> + + * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not + defined. + Sun Sep 30 04:03:43 2007 Tanaka Akira <akr@f...> * re.c (Init_Regexp): test DEFAULT_KCODE in C code because Index: bignum.c =================================================================== --- bignum.c (revision 13571) +++ bignum.c (revision 13572) @@ -657,7 +657,7 @@ static inline int ones(register unsigned long x) { -#if SIZEOF_ULONG == 8 +#if SIZEOF_LONG == 8 # define MASK_55 0x5555555555555555UL # define MASK_33 0x3333333333333333UL # define MASK_0f 0x0f0f0f0f0f0f0f0fUL @@ -671,7 +671,7 @@ x = ((x >> 4) + x) & MASK_0f; x += (x >> 8); x += (x >> 16); -#if SIZEOF_ULONG == 8 +#if SIZEOF_LONG == 8 x += (x >> 32); #endif return (int)(x & 0x7f); @@ -688,7 +688,7 @@ x |= x >> 4; x |= x >> 8; x |= x >> 16; -#if SIZEOF_ULONG == 8 +#if SIZEOF_LONG == 8 x |= x >> 32; #endif return x + 1; @@ -702,7 +702,7 @@ x |= x >> 4; x |= x >> 8; x |= x >> 16; -#if SIZEOF_ULONG == 8 +#if SIZEOF_LONG == 8 x |= x >> 32; #endif return (int)ones(x) - 1; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml