diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-27 10:49:42 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-27 10:49:42 +0000 |
| commit | 78287c3d2e570c3ffd6eaf4a73be7135e23bf40a (patch) | |
| tree | cf489dc79d238c725d58e8875b21aa0bcd430c76 | |
| parent | 90282e4057c1ca5d816202a2e5af998ae89a071d (diff) | |
* 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@16641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | numeric.c | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Tue May 27 19:45:20 2008 Akinori MUSHA <knu@iDaemons.org> + + * numeric.c (flo_divmod): Revert the behavior change; do not + suppress an exception when div is NaN or Inf. [ruby-dev:34857] + Tue May 27 19:24:40 2008 Akinori MUSHA <knu@iDaemons.org> * enum.c (enum_to_a): Pass arguments through to #each(). @@ -761,9 +761,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); } |
