summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-25 13:57:01 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-25 13:57:01 +0000
commitb134b912780e0fd84fbc107a9362e45f04391b47 (patch)
tree3aad53ec0421149c8fb9e163379bba8efb2ab42e /random.c
parent4ec25bdd63c8cb9acf70880666c1d113ae0cb51e (diff)
* various files: macro fix-up by Michal Rokos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random.c b/random.c
index e383016..3fdac4a 100644
--- a/random.c
+++ b/random.c
@@ -127,7 +127,7 @@ rb_f_srand(argc, argv, obj)
}
old = rand_init(seed);
- return rb_uint2inum(old);
+ return UINT2NUM(old);
}
static VALUE
@@ -170,7 +170,7 @@ rb_f_rand(argc, argv, obj)
val = max*RANDOM_NUMBER;
if (val < 0) val = -val;
- return rb_int2inum(val);
+ return LONG2NUM(val);
}
void