ruby-changes:29258
From: akr <ko1@a...>
Date: Sat, 15 Jun 2013 17:15:51 +0900 (JST)
Subject: [ruby-changes:29258] akr:r41310 (trunk): * bignum.c (bigmul1_normal): Shrink the result Bignum length.
akr 2013-06-15 17:15:40 +0900 (Sat, 15 Jun 2013) New Revision: 41310 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41310 Log: * bignum.c (bigmul1_normal): Shrink the result Bignum length. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 41309) +++ ChangeLog (revision 41310) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jun 15 17:14:32 2013 Tanaka Akira <akr@f...> + + * bignum.c (bigmul1_normal): Shrink the result Bignum length. + Sat Jun 15 10:19:42 2013 Zachary Scott <zachary@z...> * ext/bigdecimal/bigdecimal.c: Update overview formatting of headers Index: bignum.c =================================================================== --- bignum.c (revision 41309) +++ bignum.c (revision 41310) @@ -3139,7 +3139,7 @@ bigmul1_single(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L3139 static VALUE bigmul1_normal(VALUE x, VALUE y) { - long xl = RBIGNUM_LEN(x), yl = RBIGNUM_LEN(y), i, j = xl + yl + 1; + long xl = RBIGNUM_LEN(x), yl = RBIGNUM_LEN(y), i, j = xl + yl; BDIGIT_DBL n = 0; VALUE z = bignew(j, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y)); BDIGIT *xds, *yds, *zds; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/