summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-13 15:54:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-13 15:54:27 +0000
commit38be07f833e143f43b1ff19836b14459a0132302 (patch)
tree2b5321564193dcc1233af3c6fa7df662d29a7283 /bignum.c
parent02d1a121bd8ce8204a0f42a6499eee2962a5ad80 (diff)
* bignum.c (bigdivrem_restoring): xn argument removed.
(bigdivrem_normal): Follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index e751eb2749..675ea15fd2 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2696,7 +2696,7 @@ bigdivrem_single(BDIGIT *qds, const BDIGIT *xds, size_t xn, BDIGIT y)
}
static void
-bigdivrem_restoring(BDIGIT *zds, size_t zn, size_t xn, BDIGIT *yds, size_t yn)
+bigdivrem_restoring(BDIGIT *zds, size_t zn, BDIGIT *yds, size_t yn)
{
struct big_div_struct bds;
size_t ynzero;
@@ -2709,7 +2709,7 @@ bigdivrem_restoring(BDIGIT *zds, size_t zn, size_t xn, BDIGIT *yds, size_t yn)
bds.yds = yds + ynzero;
bds.stop = Qfalse;
bds.zn = zn - ynzero;
- if (xn > 10000 || yn > 10000) {
+ if (bds.zn > 10000 || bds.yn > 10000) {
retry:
bds.stop = Qfalse;
rb_thread_call_without_gvl(bigdivrem1, &bds, rb_big_stop, &bds);
@@ -2742,7 +2742,7 @@ bigdivrem_normal(BDIGIT *zds, size_t zn, const BDIGIT *xds, size_t xn, BDIGIT *y
}
if (xn+1 < zn) zds[xn+1] = 0;
- bigdivrem_restoring(zds, zn, xn, yds, yn);
+ bigdivrem_restoring(zds, zn, yds, yn);
if (needs_mod && shift) {
bary_small_rshift(zds, zds, yn, shift, 0);