diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-04 04:31:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-04 04:31:33 +0000 |
commit | 53b4c2b87a9c6832e663cf5773a8aca9a1cf3341 (patch) | |
tree | 6448711f10de49e5cae0bd6c3f8531c3cac90b6d /numeric.c | |
parent | a767a76ad132befbf1cf39619c55c993c854157a (diff) | |
download | ruby-53b4c2b87a9c6832e663cf5773a8aca9a1cf3341.tar.gz |
* numeric.c (fix_div): should not convert the result into
integer. [ruby-core:05524]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |