diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2019-11-19 16:16:05 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2019-11-19 16:16:05 +0100 |
commit | 531bf4eb70cca93edfc89a2ace4bfc01234ad267 (patch) | |
tree | 0b82c8bd3800487305fb3443f4675f5ba523b1e9 | |
parent | b741989fd983b2fbc2fc1529cfc02634b29d89fe (diff) | |
download | gmp-531bf4eb70cca93edfc89a2ace4bfc01234ad267.tar.gz |
mini-gmp/tests: Remove a couple of warnings
-rw-r--r-- | mini-gmp/tests/t-mpq_muldiv_2exp.c | 2 | ||||
-rw-r--r-- | mini-gmp/tests/t-mpq_str.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mini-gmp/tests/t-mpq_muldiv_2exp.c b/mini-gmp/tests/t-mpq_muldiv_2exp.c index cb0fa0af2..46b2c0c2f 100644 --- a/mini-gmp/tests/t-mpq_muldiv_2exp.c +++ b/mini-gmp/tests/t-mpq_muldiv_2exp.c @@ -100,7 +100,7 @@ testmain (int argc, char **argv) || mpz_sizeinbase (t, 2) - 1 != e || mpz_cmp_ui (mpq_denref (aq), 1) != 0) { fprintf (stderr, "mpq_div_2exp failed: %lu\n", e); - fprintf (stderr, "%li %li %lu %li\n", e2, t2, mpz_scan1 (t, 0), mpz_sizeinbase (t, 2)); + fprintf (stderr, "%li %li %lu %zu\n", e2, t2, mpz_scan1 (t, 0), mpz_sizeinbase (t, 2)); dump ("na", a); dump ("da", b); dump ("nr", mpq_numref (rq)); diff --git a/mini-gmp/tests/t-mpq_str.c b/mini-gmp/tests/t-mpq_str.c index abad8b22a..7c69153a7 100644 --- a/mini-gmp/tests/t-mpq_str.c +++ b/mini-gmp/tests/t-mpq_str.c @@ -144,7 +144,7 @@ testmain (int argc, char **argv) char *ap; char *bp; char *rp; - size_t bn, rn, arn; + size_t rn, arn; mpq_t a, b; |