aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index e37faa5eb8..1279cc2203 100644
--- a/time.c
+++ b/time.c
@@ -126,7 +126,7 @@ quo(VALUE x, VALUE y)
a = FIX2LONG(x);
b = FIX2LONG(y);
if (b == 0) rb_num_zerodiv();
- if (a == FIXNUM_MIN && b == -1) LONG2NUM(-a);
+ if (a == FIXNUM_MIN && b == -1) return LONG2NUM(-a);
c = a / b;
if (c * b == a) {
return LONG2FIX(c);