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

ruby-changes:33010

From: mame <ko1@a...>
Date: Sat, 22 Feb 2014 01:24:02 +0900 (JST)
Subject: [ruby-changes:33010] mame:r45089 (trunk): * bignum.c (bary_mul_precheck): fix a copy-paste error.

mame	2014-02-22 01:23:58 +0900 (Sat, 22 Feb 2014)

  New Revision: 45089

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45089

  Log:
    * bignum.c (bary_mul_precheck): fix a copy-paste error.
      Coverity Scan found this bug.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45088)
+++ ChangeLog	(revision 45089)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Feb 22 01:22:24 2014  Yusuke Endoh  <mame@t...>
+
+	* bignum.c (bary_mul_precheck): fix a copy-paste error.
+	  Coverity Scan found this bug.
+
 Sat Feb 22 00:58:51 2014  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* ext/socket/raddrinfo.c (rb_getaddrinfo): second argument of
Index: bignum.c
===================================================================
--- bignum.c	(revision 45088)
+++ bignum.c	(revision 45089)
@@ -2363,7 +2363,7 @@ bary_mul_precheck(BDIGIT **zdsp, size_t https://github.com/ruby/ruby/blob/trunk/bignum.c#L2363
         }
         else {
             do {
-                if (xds[0] != 0)
+                if (yds[0] != 0)
                     break;
                 yds++;
                 yn--;

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

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