ruby-changes:42140
From: naruse <ko1@a...>
Date: Mon, 21 Mar 2016 22:21:18 +0900 (JST)
Subject: [ruby-changes:42140] naruse:r54214 (trunk): fix commit miss
naruse 2016-03-21 22:21:12 +0900 (Mon, 21 Mar 2016) New Revision: 54214 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54214 Log: fix commit miss Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 54213) +++ time.c (revision 54214) @@ -128,7 +128,7 @@ quo(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/time.c#L128 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); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/