diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Jan 16 17:55:07 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * numeric.c (fix_quo): typo. a patch from Shin-ichiro HARA + <sinara AT blade.nagaokaut.ac.jp> in [ruby-dev:33130] + Wed Jan 16 17:36:26 2008 NAKAMURA Usaku <usa@ruby-lang.org> * test/test_delegate.rb: add new test file for delegate.rb. @@ -2187,7 +2187,7 @@ fix_quo(VALUE x, VALUE y) } switch (TYPE(y)) { case T_BIGNUM: - return DOUBLE2NUM((double)FIX2LONG(y) / rb_big2dbl(y)); + return DOUBLE2NUM((double)FIX2LONG(x) / rb_big2dbl(y)); case T_FLOAT: return DOUBLE2NUM((double)FIX2LONG(x) / RFLOAT_VALUE(y)); default: |