mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* bignum.c (rb_big2str1): Make an expression more explicit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c106d19445
commit
364237623b
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Aug 18 10:05:12 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* bignum.c (rb_big2str1): Make an expression more explicit.
|
||||||
|
|
||||||
Sun Aug 18 03:18:45 2013 Tanaka Akira <akr@fsij.org>
|
Sun Aug 18 03:18:45 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).
|
* bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).
|
||||||
|
|
2
bignum.c
2
bignum.c
|
@ -4569,7 +4569,7 @@ rb_big2str1(VALUE x, int base)
|
||||||
VALUE tmpw = 0;
|
VALUE tmpw = 0;
|
||||||
BDIGIT *wds;
|
BDIGIT *wds;
|
||||||
size_t wn;
|
size_t wn;
|
||||||
wn = power_level + RBIGNUM_LEN(power);
|
wn = power_level * BIGDIVREM_EXTRA_WORDS + RBIGNUM_LEN(power);
|
||||||
wds = ALLOCV_N(BDIGIT, tmpw, xn + wn);
|
wds = ALLOCV_N(BDIGIT, tmpw, xn + wn);
|
||||||
MEMCPY(wds, xds, BDIGIT, xn);
|
MEMCPY(wds, xds, BDIGIT, xn);
|
||||||
big2str_karatsuba(&b2s_data, wds, xn, wn, power_level, 0);
|
big2str_karatsuba(&b2s_data, wds, xn, wn, power_level, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue