diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:26:34 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 14:26:34 +0000 |
commit | b25c0d7701b6687e2bb3d362140d8c82984fd3ec (patch) | |
tree | 4f6a534c28887aadc27335f674722c0133c9827d /numeric.c | |
parent | 0bec319ab19d9db8ae390cd21c673d2f60792367 (diff) |
merge revision(s) 16641:
* numeric.c (flo_divmod): Revert the behavior change; do not
suppress an exception when div is NaN or Inf. [ruby-dev:34857]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@17337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -760,9 +760,6 @@ flo_divmod(x, y) val = round(div); a = LONG2FIX(val); } - else if (isnan(div) || isinf(div)) { - a = rb_float_new(div); - } else { a = rb_dbl2big(div); } |