mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 05:13:39 +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
1 changed files with 4 additions and 2 deletions
|
@ -251,8 +251,10 @@ class mpz_manager {
|
||||||
}
|
}
|
||||||
|
|
||||||
void mk_big(mpz & a) {
|
void mk_big(mpz & a) {
|
||||||
if (a.m_ptr == 0)
|
if (a.m_ptr == 0) {
|
||||||
|
a.m_val = 0;
|
||||||
a.m_ptr = allocate();
|
a.m_ptr = allocate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue