summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 10:50:15 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-27 10:50:15 +0000
commitb0278ac7647e01e612c104490ec700a7538f3206 (patch)
treecb929cdbb026622405b5c30757346d3f6df27315 /numeric.c
parent69d1b029a800477ff2e41e13ed4b4e29d9b1c8e8 (diff)
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c3
1 files changed, 0 insertions, 3 deletions
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);
}