aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
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) {