From 78287c3d2e570c3ffd6eaf4a73be7135e23bf40a Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 27 May 2008 10:49:42 +0000 Subject: * 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 --- numeric.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'numeric.c') 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); } -- cgit v1.2.3