mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 03:33:35 +00:00
fix missing memset in my previous commit
Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
This commit is contained in:
parent
695ce643f5
commit
4ed062d54a
|
@ -30,6 +30,7 @@ void bit_vector::expand_to(unsigned new_capacity) {
|
|||
} else {
|
||||
m_data = alloc_svect(unsigned, new_capacity);
|
||||
}
|
||||
memset(m_data + m_capacity, 0, (new_capacity - m_capacity) * sizeof(unsigned));
|
||||
m_capacity = new_capacity;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue