aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/time.c b/time.c
index 2ee592d417..2b37bdef71 100644
--- a/time.c
+++ b/time.c
@@ -148,7 +148,10 @@ divmodv(VALUE n, VALUE d, VALUE *q, VALUE *r)
VALUE tmp, ary;
if (FIXNUM_P(d)) {
if (FIX2LONG(d) == 0) rb_num_zerodiv();
- if (FIXNUM_P(n)) return rb_fix_divmod_fix(n, d, q, r);
+ if (FIXNUM_P(n)) {
+ rb_fix_divmod_fix(n, d, q, r);
+ return;
+ }
}
tmp = rb_funcall(n, id_divmod, 1, d);
ary = rb_check_array_type(tmp);