diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-21 13:31:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-21 13:31:30 +0000 |
commit | 2118eccc77a6643ef8ef973fd740015680429257 (patch) | |
tree | 51e8621e0cfc4da9cd34ae75f5f91b9b5eadb217 | |
parent | 654788793de6145e79ae37b62fe199aef9dc5bb5 (diff) | |
download | ruby-2118eccc77a6643ef8ef973fd740015680429257.tar.gz |
time.c (quo): fix missing return
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |