aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:21:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:21:12 +0000
commit97c258b364693747400269d6ea2f0a1a59c8cf3d (patch)
tree81d4c3314d6af421920d65e63f465ffc988b5c2e /time.c
parent2398e8ad95f5fa73c63f56d6180daebcacf1d1d5 (diff)
downloadruby-97c258b364693747400269d6ea2f0a1a59c8cf3d.tar.gz
fix commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);
}
}