From b25bda4547b63e3c6e0ac723d6168c72696a250a Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 22 Aug 2010 00:10:06 +0000 Subject: * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64. reported by Daniel Gutmanas. [ruby-core:31778] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/ruby.h') 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 -- cgit v1.2.3