summaryrefslogtreecommitdiff
path: root/mpn/generic
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-02-06 17:34:22 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-02-06 17:34:22 +0100
commit2482b89c0d8aca660010a39009cc943d4f8885c3 (patch)
tree40f8cb55077a0a1fb7dc03342ab6b434d035a3a3 /mpn/generic
parent9a3698cd2434bf7f6122030383124fedf82b938c (diff)
downloadgmp-2482b89c0d8aca660010a39009cc943d4f8885c3.tar.gz
mpn/generic/jacbase.c (mpn_jacobi_base): Exit condition for _METHOD == 4
Diffstat (limited to 'mpn/generic')
-rw-r--r--mpn/generic/jacbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpn/generic/jacbase.c b/mpn/generic/jacbase.c
index 735ad7a0b..391ceac3c 100644
--- a/mpn/generic/jacbase.c
+++ b/mpn/generic/jacbase.c
@@ -3,7 +3,7 @@
THIS INTERFACE IS PRELIMINARY AND MIGHT DISAPPEAR OR BE SUBJECT TO
INCOMPATIBLE CHANGES IN A FUTURE RELEASE OF GMP.
-Copyright 1999-2002, 2010 Free Software Foundation, Inc.
+Copyright 1999-2002, 2010, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -235,7 +235,7 @@ mpn_jacobi_base (mp_limb_t a, mp_limb_t b, int bit)
bit ^= c & (b ^ (b >> 1));
a >>= c;
}
- while (b > 0);
+ while (a > 0);
return 1-2*(bit & 1);
}