summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-02-10 21:58:29 +0100
committerNiels Möller <nisse@lysator.liu.se>2012-02-10 21:58:29 +0100
commit646e6e148072dc370334dc50f1513d01463d271b (patch)
tree6a8a3a58ad420fc4fdf4aa9721c9b10c8545766d /tests
parent52cfb9531354e6247db0e08958b665afb24cd2ee (diff)
downloadgmp-646e6e148072dc370334dc50f1513d01463d271b.tar.gz
Enforce sligthly stricter bound for cofactors.
Diffstat (limited to 'tests')
-rw-r--r--tests/mpz/t-gcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mpz/t-gcd.c b/tests/mpz/t-gcd.c
index 687e0556c..788c29ccf 100644
--- a/tests/mpz/t-gcd.c
+++ b/tests/mpz/t-gcd.c
@@ -370,7 +370,7 @@ gcdext_valid_p (const mpz_t a, const mpz_t b, const mpz_t g, const mpz_t s)
if (mpz_cmpabs_ui (s, 1) > 0)
{
mpz_mul_2exp (temp3, s, 1);
- if (mpz_cmpabs (temp3, temp2) > 0)
+ if (mpz_cmpabs (temp3, temp2) >= 0)
return 0;
}
@@ -386,7 +386,7 @@ gcdext_valid_p (const mpz_t a, const mpz_t b, const mpz_t g, const mpz_t s)
if (mpz_cmpabs_ui (temp2, 1) > 0)
{
mpz_mul_2exp (temp2, temp2, 1);
- if (mpz_cmpabs (temp2, temp1) > 0)
+ if (mpz_cmpabs (temp2, temp1) >= 0)
return 0;
}
return 1;