summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 15:38:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-13 15:38:48 +0000
commit3e6f0e6a20ee36c09e1078ef2e64d22c93a6393c (patch)
tree075f6182dbf730e0c188f22931d2063fe0ab609a /numeric.c
parent4122a1356058bc4df1073713b8f43a75a8cca51a (diff)
* numeric.c (int_round): should not return false, but self.
[ruby-dev:31212] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index cd2b4affae..da8b74bb3b 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2900,7 +2900,7 @@ int_round(int argc, VALUE* argv, VALUE num)
VALUE n, f, h, r;
int ndigits;
- if (argc == 0) return 0;
+ if (argc == 0) return num;
rb_scan_args(argc, argv, "1", &n);
ndigits = NUM2INT(n);
if (ndigits > 0) {