[前][次][番号順一覧][スレッド一覧]

ruby-changes:42152

From: usa <ko1@a...>
Date: Tue, 22 Mar 2016 11:41:33 +0900 (JST)
Subject: [ruby-changes:42152] usa:r54226 (trunk): * time.c (wmul): wrong condition.

usa	2016-03-22 11:41:24 +0900 (Tue, 22 Mar 2016)

  New Revision: 54226

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54226

  Log:
    * time.c (wmul): wrong condition.
      fixed many test failures on 32bit and LLP64 platforms.

  Modified files:
    trunk/ChangeLog
    trunk/time.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54225)
+++ ChangeLog	(revision 54226)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar 22 11:36:49 2016  NAKAMURA Usaku  <usa@r...>
+
+	* time.c (wmul): wrong condition.
+	  fixed many test failures on 32bit and LLP64 platforms.
+
 Tue Mar 22 10:31:34 2016  NAKAMURA Usaku  <usa@r...>
 
 	* time.c (wdiv, wmod): wdivmod0() assumes the 3rd and the 4th arguments
Index: time.c
===================================================================
--- time.c	(revision 54225)
+++ time.c	(revision 54226)
@@ -367,7 +367,7 @@ wmul(wideval_t wx, wideval_t wy) https://github.com/ruby/ruby/blob/trunk/time.c#L367
 {
 #if WIDEVALUE_IS_WIDER
     if (FIXWV_P(wx) && FIXWV_P(wy)) {
-	if (MUL_OVERFLOW_FIXWV_P(FIXWV2WINT(wx), FIXWV2WINT(wy)))
+	if (!MUL_OVERFLOW_FIXWV_P(FIXWV2WINT(wx), FIXWV2WINT(wy)))
 	    return WINT2WV(FIXWV2WINT(wx) * FIXWV2WINT(wy));
     }
 #endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]