diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-05 21:45:25 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-05 21:45:25 +0000 |
commit | 80f54e68108a11447168d299f46abce461565f27 (patch) | |
tree | 357955550bcfaacf8a4ea652e37eb4acaf20257d /numeric.c | |
parent | 3dc28710c98502db74dc103bcdc58b65564e83ab (diff) | |
download | ruby-80f54e68108a11447168d299f46abce461565f27.tar.gz |
* numeric.c (dbl2ival): Fix Float#divmod and #round for 32 bit platform
part 1 of [bug #5276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -873,8 +873,8 @@ flo_mod(VALUE x, VALUE y) static VALUE dbl2ival(double d) { + d = round(d); if (FIXABLE(d)) { - d = round(d); return LONG2FIX((long)d); } return rb_dbl2big(d); |