summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 10:49:42 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 10:49:42 +0000
commit78287c3d2e570c3ffd6eaf4a73be7135e23bf40a (patch)
treecf489dc79d238c725d58e8875b21aa0bcd430c76
parent90282e4057c1ca5d816202a2e5af998ae89a071d (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--ChangeLog5
-rw-r--r--numeric.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 97a1cab281..07e9203194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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().
diff --git a/numeric.c b/numeric.c
index c6ef250a6e..b2f2e1fad9 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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);
}