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
commit654788793de6145e79ae37b62fe199aef9dc5bb5 (patch)
tree81d4c3314d6af421920d65e63f465ffc988b5c2e /time.c
parentf5715289ac9a3a0dd0dafabb7ff27482e5f07189 (diff)
downloadruby-654788793de6145e79ae37b62fe199aef9dc5bb5.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);
}
}