summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-01 11:33:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-01 11:33:27 +0000
commit9ee1ced6d95eaf139ea69364ee7b10e74b5afa04 (patch)
tree0821b9c36dbae1789652f7e977b5ea2a3b048c28 /bignum.c
parent9dd982b344648e810fb61201878b7ccbae1b8de9 (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.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 8fdcf72653..be287032ce 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);
}