summaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-01 15:00:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-01 15:00:01 +0000
commit8a8049cc69251e9519e0871acea4801e0d5366e5 (patch)
treeaca643f973ceda31e34e35d7df49bfefeaf68061 /bignum.c
parent8464e95cf59fc8fcfd26b415bf3e252c8a983421 (diff)
downloadruby-8a8049cc69251e9519e0871acea4801e0d5366e5.tar.gz
ruby-8a8049cc69251e9519e0871acea4801e0d5366e5.tar.xz
ruby-8a8049cc69251e9519e0871acea4801e0d5366e5.zip
* bignum.c (rb_big_divide), numeric.c (fix_divide): check for result
domain. [ruby-dev:34559] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index f38e0774e..cf375a528 100644
--- a/bignum.c
+++ b/bignum.c
@@ -1821,7 +1821,7 @@ rb_big_divide(VALUE x, VALUE y, ID op)
return DOUBLE2NUM(div);
}
else {
- return LONG2NUM((long)div);
+ return rb_dbl2big(div);
}
}