summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 0f2cfd9f9e..29fb9f83f2 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1953,7 +1953,7 @@ fix_to_s(argc, argv, x)
if (base == 2) {
/* rb_fix2str() does not handle binary */
- return rb_big2str(rb_int2big(FIX2INT(x)), 2);
+ return rb_big2str(rb_int2big(FIX2LONG(x)), 2);
}
return rb_fix2str(x, base);
}