From 919cc1e53e77db0c72ea307ffd0a0d4eec8dbeee Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 15 Jun 2013 08:15:40 +0000 Subject: * bignum.c (bigmul1_normal): Shrink the result Bignum length. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index f347a2ff5b..8cbdce8819 100644 --- a/bignum.c +++ b/bignum.c @@ -3139,7 +3139,7 @@ bigmul1_single(VALUE x, VALUE y) 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; -- cgit v1.2.3