1
0
Fork 0
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:
nobu 2007-10-15 04:24:10 +00:00
parent 16652ad4ce
commit 118625a3b3
2 changed files with 6 additions and 1 deletions

View file

@ -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]

View file

@ -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;