ruby-changes:17095
From: nobu <ko1@a...>
Date: Wed, 25 Aug 2010 20:23:02 +0900 (JST)
Subject: [ruby-changes:17095] Ruby:r29095 (trunk): * random.c (rb_random_int32): fixed typo.
nobu 2010-08-25 20:22:55 +0900 (Wed, 25 Aug 2010) New Revision: 29095 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29095 Log: * random.c (rb_random_int32): fixed typo. Modified files: trunk/random.c Index: random.c =================================================================== --- random.c (revision 29094) +++ random.c (revision 29095) @@ -887,7 +887,7 @@ { rb_random_t *rnd = try_get_rnd(obj); if (!rnd) { -#if SIZEOF_LONG > 32 +#if SIZEOF_LONG * CHAR_BIT > 32 VALUE lim = ULONG2NUM(0x100000000); #elif defined HAVE_LONG_LONG VALUE lim = ULL2NUM((LONG_LONG)0xffffffff+1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/