diff options
author | Seth Troisi <sethtroisi@google.com> | 2019-09-08 09:04:03 +0200 |
---|---|---|
committer | Seth Troisi <sethtroisi@google.com> | 2019-09-08 09:04:03 +0200 |
commit | 5c0fa97f4a00cf6b318e14b5dc0494f502cfcd7f (patch) | |
tree | 168853750da7425e16de20cde39bc16e2bfc2d4b /mpz | |
parent | a91ffef4f43f5ca42bfc901da3aa126e94a1ed2a (diff) | |
download | gmp-5c0fa97f4a00cf6b318e14b5dc0494f502cfcd7f.tar.gz |
mpz/nextprime.c: Fixed overalloc
Diffstat (limited to 'mpz')
-rw-r--r-- | mpz/nextprime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/nextprime.c b/mpz/nextprime.c index 4c5ca5797..1a0b5b6b0 100644 --- a/mpz/nextprime.c +++ b/mpz/nextprime.c @@ -80,7 +80,7 @@ mpz_nextprime (mpz_ptr p, mpz_srcptr n) TMP_SMARK; /* Compute residues modulo small odd primes */ - moduli = TMP_SALLOC_TYPE (prime_limit * sizeof moduli[0], unsigned short); + moduli = TMP_SALLOC_TYPE (prime_limit, unsigned short); for (;;) { |