diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-02 17:43:38 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-02 17:43:38 +0200 |
commit | bfcce7a66cce49f0d156644c446a34058b140bbb (patch) | |
tree | dc408c1e25d800a1deacac9c2815e8dd9372d626 /mpz | |
parent | 92edee4db9e203c61b843c0fa1bf3b0d0b0449ef (diff) | |
download | gmp-bfcce7a66cce49f0d156644c446a34058b140bbb.tar.gz |
mpz/oddfac_1.c: Initalize size for ASSERT.
Diffstat (limited to 'mpz')
-rw-r--r-- | mpz/oddfac_1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mpz/oddfac_1.c b/mpz/oddfac_1.c index 80f9064a2..2dcb12827 100644 --- a/mpz/oddfac_1.c +++ b/mpz/oddfac_1.c @@ -585,6 +585,9 @@ mpz_oddfac_1 (mpz_ptr x, mp_limb_t n, unsigned flag) /* 2-multiswing(n) < 2^(n-1)*sqrt(n/pi) < 2^(n+GMP_NUMB_BITS); one more can be overwritten by mul, another for the sieve */ MPZ_TMP_INIT (mswing, size); +#if WANT_ASSERT + SIZ(mswing) = 0; /* Initialize size, so that ASSERT can check it correctly. */ +#endif /* Put the sieve on the second half, it will be overwritten by the last mswing. */ sieve = PTR (mswing) + size / 2 + 1; |