ruby-changes:17070
From: akr <ko1@a...>
Date: Sun, 22 Aug 2010 09:13:29 +0900 (JST)
Subject: [ruby-changes:17070] Ruby:r29068 (trunk): * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
akr 2010-08-22 09:10:06 +0900 (Sun, 22 Aug 2010) New Revision: 29068 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29068 Log: * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64. reported by Daniel Gutmanas. [ruby-core:31778] Modified files: trunk/ChangeLog trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 29067) +++ include/ruby/ruby.h (revision 29068) @@ -952,7 +952,7 @@ #define OBJ_FROZEN(x) (!!FL_TEST((x), FL_FREEZE)) #define OBJ_FREEZE(x) FL_SET((x), FL_FREEZE) -#if SIZEOF_INT < SIZEOF_VALUE +#if SIZEOF_INT < SIZEOF_LONG # define INT2NUM(v) INT2FIX((int)(v)) # define UINT2NUM(v) LONG2FIX((unsigned int)(v)) #else Index: ChangeLog =================================================================== --- ChangeLog (revision 29067) +++ ChangeLog (revision 29068) @@ -1,3 +1,8 @@ +Sun Aug 22 09:08:02 2010 Tanaka Akira <akr@f...> + + * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64. + reported by Daniel Gutmanas. [ruby-core:31778] + Sun Aug 22 06:46:21 2010 Nobuyoshi Nakada <nobu@r...> * array.c (RAND_UPTO): macro for random number. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/