diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2022-03-17 19:58:22 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2022-03-17 19:58:22 +0100 |
commit | 2955987eb8cef69184e98f396b4926d8249cf39d (patch) | |
tree | a3361471737bc056310c9b14a3f56aeae7171d8e | |
parent | 83d45e5117e3abbe78b52191e9dc1735959d599a (diff) | |
download | gmp-2955987eb8cef69184e98f396b4926d8249cf39d.tar.gz |
tests/mpz/t-gcd.c: Do not assume a limb fits for _ui functions
-rw-r--r-- | tests/mpz/t-gcd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mpz/t-gcd.c b/tests/mpz/t-gcd.c index cd42ab7c9..46b278abf 100644 --- a/tests/mpz/t-gcd.c +++ b/tests/mpz/t-gcd.c @@ -237,7 +237,10 @@ main (int argc, char **argv) check_kolmo2 (); /* Testcase to exercise the u0 == u1 case in mpn_gcdext_lehmer_n. */ - mpz_set_ui (op2, GMP_NUMB_MAX); /* FIXME: Huge limb doesn't always fit */ + /* mpz_set_ui (op2, GMP_NUMB_MAX); */ /* FIXME: Huge limb doesn't always fit */ + mpz_set_ui (op2, 0); + mpz_setbit (op2, GMP_NUMB_BITS); + mpz_sub_ui (op2, op2, 1); mpz_mul_2exp (op1, op2, 100); mpz_add (op1, op1, op2); mpz_mul_ui (op2, op2, 2); |