diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/ruby.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Aug 22 09:08:02 2010 Tanaka Akira <akr@fsij.org> + + * 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@ruby-lang.org> * array.c (RAND_UPTO): macro for random number. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 72fe91a9e8..028f4e9336 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -952,7 +952,7 @@ struct RBignum { #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 |