ruby-changes:42141
From: nobu <ko1@a...>
Date: Mon, 21 Mar 2016 22:31:36 +0900 (JST)
Subject: [ruby-changes:42141] nobu:r54215 (trunk): time.c (quo): fix missing return
nobu 2016-03-21 22:31:30 +0900 (Mon, 21 Mar 2016) New Revision: 54215 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54215 Log: time.c (quo): fix missing return Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 54214) +++ time.c (revision 54215) @@ -126,7 +126,7 @@ quo(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/time.c#L126 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/