From 4dfafee3fe4c13a07b8736bac13c7027e9e3efbc Mon Sep 17 00:00:00 2001 From: shyouhei Date: Sun, 15 Jun 2008 14:27:06 +0000 Subject: 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_6@17339 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 405f99358b..c91a06ddb5 100644 --- a/numeric.c +++ b/numeric.c @@ -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); } -- cgit v1.2.3