summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 15:03:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-15 15:03:35 +0000
commit02b6f663c5d6d2d7687945008b53aa9af869c35b (patch)
tree1858a9a915c87aa39892c72d926e80d490bef557 /bignum.c
parent0c031824d2fe689484a236655abfbe36c7f7b774 (diff)
* bignum.c (bary_divmod): Simplify an expression.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 8fb76951e9..a4af506651 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2800,7 +2800,7 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIGIT *rds, size_t rn, const BDIGIT *xds, s
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);