diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-19 21:49:52 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-19 21:49:52 +0000 |
commit | a57cbd7b27b3d254c71cb3b175e44e95550ef28d (patch) | |
tree | 5a8936d48a66686de4258bcb9c023f5ee0532473 /random.c | |
parent | 9021777282b038d1d83e758dcfca05cebc42d2b9 (diff) | |
download | ruby-a57cbd7b27b3d254c71cb3b175e44e95550ef28d.tar.gz |
* random.c (rb_random_int32): get rid of "warning: constant 0x100000000
is so big it is long" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -911,7 +911,7 @@ rb_random_int32(VALUE obj) rb_random_t *rnd = try_get_rnd(obj); if (!rnd) { #if SIZEOF_LONG * CHAR_BIT > 32 - VALUE lim = ULONG2NUM(0x100000000); + VALUE lim = ULONG2NUM(0x100000000UL); #elif defined HAVE_LONG_LONG VALUE lim = ULL2NUM((LONG_LONG)0xffffffff+1); #else |