mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* random.c (rb_random_int32): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fd1022c065
commit
00dcf07ebc
1 changed files with 1 additions and 1 deletions
2
random.c
2
random.c
|
@ -887,7 +887,7 @@ rb_random_int32(VALUE obj)
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue