aboutsummaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 027384076d..f247d8f1a5 100644
--- a/bignum.c
+++ b/bignum.c
@@ -1599,7 +1599,7 @@ rb_big_pow(x, y)
break;
case T_FIXNUM:
- yy = NUM2LONG(y);
+ yy = FIX2LONG(y);
if (yy > 0) {
VALUE z = x;