зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3009bcb679
Коммит
50bcd83621
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче