summaryrefslogtreecommitdiffstats
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 ec01d6926..fcf0ba1a7 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2155,7 +2155,7 @@ fix_div(x, y)
x = rb_int2big(FIX2LONG(x));
return rb_big_div(x, y);
case T_FLOAT:
- return rb_Integer(rb_float_new((double)FIX2LONG(x) / RFLOAT(y)->value));
+ return rb_float_new((double)FIX2LONG(x) / RFLOAT(y)->value);
default:
return rb_num_coerce_bin(x, y);
}