diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | bignum.c | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -26,6 +26,11 @@ Tue Apr 1 01:55:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/resolv.rb (Resolv::Config.default_config_hash): requires win32/resolv to use Win32::Resolv. [ruby-dev:34138] +Mon Mar 31 14:51:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * bignum.c (rb_big_div): Bignum#div should return integer for + floating number operand. + Sun Mar 30 07:00:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/tk/tcltklib.c: rb_hash_lookup has not been backported yet. @@ -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); } |