mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (fix_quo): typo. a patch from Shin-ichiro HARA
<sinara AT blade.nagaokaut.ac.jp> in [ruby-dev:33130] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3009bcb679
commit
50bcd83621
2 changed files with 6 additions and 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:
|
||||
|
|
Loading…
Reference in a new issue