aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:31:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 13:31:30 +0000
commit980c798a9713a1d8d1318fa15dd9014cc66ebf66 (patch)
tree51e8621e0cfc4da9cd34ae75f5f91b9b5eadb217 /time.c
parent97c258b364693747400269d6ea2f0a1a59c8cf3d (diff)
downloadruby-980c798a9713a1d8d1318fa15dd9014cc66ebf66.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
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 e37faa5eb8..1279cc2203 100644
--- a/time.c
+++ b/time.c
@@ -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);