aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index b725190780..e37faa5eb8 100644
--- a/time.c
+++ b/time.c
@@ -128,7 +128,7 @@ quo(VALUE x, VALUE y)
if (b == 0) rb_num_zerodiv();
if (a == FIXNUM_MIN && b == -1) LONG2NUM(-a);
c = a / b;
- if (a % b == 0) {
+ if (c * b == a) {
return LONG2FIX(c);
}
}