summaryrefslogtreecommitdiff
path: root/mpz
diff options
context:
space:
mode:
Diffstat (limited to 'mpz')
-rw-r--r--mpz/oddfac_1.c3
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;