mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
remove std::max for #1752
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
85e7b18451
commit
e8a78ec696
|
@ -152,7 +152,7 @@ class mpz_manager {
|
|||
|
||||
// make sure that n is a big number and has capacity equal to at least c.
|
||||
void allocate_if_needed(mpz & n, unsigned c) {
|
||||
c = std::max(c, m_init_cell_capacity);
|
||||
if (m_init_cell_capacity > c) c = m_init_cell_capacity;
|
||||
if (n.m_ptr == nullptr || capacity(n) < c) {
|
||||
deallocate(n);
|
||||
n.m_val = 1;
|
||||
|
|
Loading…
Reference in a new issue