1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (bary_divmod): Simplify an expression.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-08-15 15:03:35 +00:00
parent 0c031824d2
commit 02b6f663c5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Aug 16 00:00:57 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_divmod): Simplify an expression.
Thu Aug 15 23:26:12 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bigdivrem_normal): Remove a local variable.

View file

@ -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);