mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (flo_round): should be number but not rounding factor.
[ruby-dev:32060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
16652ad4ce
commit
118625a3b3
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 15 13:24:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (flo_round): should be number but not rounding factor.
|
||||
[ruby-dev:32060]
|
||||
|
||||
Mon Oct 15 11:45:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* marshal.c (r_bytes0): refined length check. [ruby-dev:32059]
|
||||
|
|
|
@ -1257,7 +1257,7 @@ flo_round(int argc, VALUE *argv, VALUE num)
|
|||
|
||||
if (ndigits > 0) return rb_float_new(number);
|
||||
|
||||
if (!FIXABLE(f)) {
|
||||
if (!FIXABLE(number)) {
|
||||
return rb_dbl2big(number);
|
||||
}
|
||||
val = number;
|
||||
|
|
Loading…
Reference in a new issue