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

ruby-changes:29229

From: akr <ko1@a...>
Date: Thu, 13 Jun 2013 22:02:45 +0900 (JST)
Subject: [ruby-changes:29229] akr:r41281 (trunk): Use ny instead of RBIGNUM_LEN(y).

akr	2013-06-13 22:02:34 +0900 (Thu, 13 Jun 2013)

  New Revision: 41281

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

  Log:
    Use ny instead of RBIGNUM_LEN(y).

  Modified files:
    trunk/bignum.c

Index: bignum.c
===================================================================
--- bignum.c	(revision 41280)
+++ bignum.c	(revision 41281)
@@ -3799,7 +3799,7 @@ bigdivrem(VALUE x, VALUE y, volatile VAL https://github.com/ruby/ruby/blob/trunk/bignum.c#L3799
     dd = nlz(q);
     q <<= dd;
     if (dd) {
-        tds = ALLOCV_N(BDIGIT, tmpy, RBIGNUM_LEN(y));
+        tds = ALLOCV_N(BDIGIT, tmpy, ny);
 	j = 0;
 	t2 = 0;
 	while (j<ny) {

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

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