diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 11:33:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 11:33:27 +0000 |
commit | 9ee1ced6d95eaf139ea69364ee7b10e74b5afa04 (patch) | |
tree | 0821b9c36dbae1789652f7e977b5ea2a3b048c28 /bignum.c | |
parent | 9dd982b344648e810fb61201878b7ccbae1b8de9 (diff) |
* bignum.c (rb_big_div): Bignum#div should return integer for
floating number operand.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1509,9 +1509,6 @@ rb_big_div(x, y) case T_BIGNUM: break; - case T_FLOAT: - return rb_float_new(rb_big2dbl(x) / RFLOAT(y)->value); - default: return rb_num_coerce_bin(x, y); } |