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

ruby-changes:29507

From: akr <ko1@a...>
Date: Sat, 22 Jun 2013 13:56:47 +0900 (JST)
Subject: [ruby-changes:29507] akr:r41559 (trunk): * bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.

akr	2013-06-22 13:56:37 +0900 (Sat, 22 Jun 2013)

  New Revision: 41559

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

  Log:
    * bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41558)
+++ ChangeLog	(revision 41559)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun 22 13:47:13 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.
+
 Sat Jun 22 13:43:00 2013  Charlie Somerville  <charliesome@r...>
 
 	* ext/etc/etc.c (etc_getpwnam): use PRIsVALUE in format string instead
Index: bignum.c
===================================================================
--- bignum.c	(revision 41558)
+++ bignum.c	(revision 41559)
@@ -919,7 +919,7 @@ bary_pack(int sign, BDIGIT *ds, size_t n https://github.com/ruby/ruby/blob/trunk/bignum.c#L919
         sign = 0;
     }
 
-    if (nails == 0 && sign == 0) {
+    if (sign == 0) {
         MEMZERO(words, unsigned char, numwords * wordsize);
         return 0;
     }

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

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