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:
parent
5ce70eb521
commit
ef11ef61b5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue