aboutsummaryrefslogtreecommitdiffstats
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 4154879e37..5556bded3e 100644
--- a/random.c
+++ b/random.c
@@ -1055,7 +1055,7 @@ random_rand(int argc, VALUE *argv, VALUE obj)
long x = FIX2LONG(beg) + FIX2LONG(v);
return LONG2NUM(x);
}
- switch (BUILTIN_TYPE(v)) {
+ switch (TYPE(v)) {
case T_BIGNUM:
return rb_big_plus(v, beg);
case T_FLOAT: