3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

Clean m_val field when switching to GMP bignum

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-01-11 17:55:52 -08:00
parent 5ce70eb521
commit ef11ef61b5

View file

@ -251,9 +251,11 @@ class mpz_manager {
}
void mk_big(mpz & a) {
if (a.m_ptr == 0)
if (a.m_ptr == 0) {
a.m_val = 0;
a.m_ptr = allocate();
}
}
#endif
#ifndef _MP_GMP