ruby-changes:30490
From: akr <ko1@a...>
Date: Fri, 16 Aug 2013 00:03:41 +0900 (JST)
Subject: [ruby-changes:30490] akr:r42569 (trunk): * bignum.c (bary_divmod): Simplify an expression.
akr 2013-08-16 00:03:35 +0900 (Fri, 16 Aug 2013) New Revision: 42569 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42569 Log: * bignum.c (bary_divmod): Simplify an expression. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42568) +++ ChangeLog (revision 42569) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Aug 16 00:00:57 2013 Tanaka Akira <akr@f...> + + * bignum.c (bary_divmod): Simplify an expression. + Thu Aug 15 23:26:12 2013 Tanaka Akira <akr@f...> * bignum.c (bigdivrem_normal): Remove a local variable. Index: bignum.c =================================================================== --- bignum.c (revision 42568) +++ bignum.c (revision 42569) @@ -2800,7 +2800,7 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIG https://github.com/ruby/ruby/blob/trunk/bignum.c#L2800 if (xn + extra_words <= qn) zds = qds; else - zds = ALLOCV_N(BDIGIT, tmpz, xn + extra_words); + zds = ALLOCV_N(BDIGIT, tmpz, zn); MEMCPY(zds, xds, BDIGIT, xn); BDIGITS_ZERO(zds+xn, zn-xn); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/