diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-21 13:21:12 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-21 13:21:12 +0000 |
commit | 654788793de6145e79ae37b62fe199aef9dc5bb5 (patch) | |
tree | 81d4c3314d6af421920d65e63f465ffc988b5c2e | |
parent | f5715289ac9a3a0dd0dafabb7ff27482e5f07189 (diff) | |
download | ruby-654788793de6145e79ae37b62fe199aef9dc5bb5.tar.gz |
fix commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |