mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +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,8 +251,10 @@ 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
|
||||
|
||||
|
@ -687,7 +689,7 @@ public:
|
|||
double get_double(mpz const & a) const;
|
||||
|
||||
std::string to_string(mpz const & a) const;
|
||||
|
||||
|
||||
void display(std::ostream & out, mpz const & a) const;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue