3
0
Fork 0
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:
Nuno Lopes 2015-03-11 11:04:33 +00:00
parent 695ce643f5
commit 4ed062d54a

View file

@ -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;
}