3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00

fix a few warnings & simplify debug.h header

This commit is contained in:
Nuno Lopes 2020-05-26 13:49:13 +01:00
parent a97bc65af4
commit d8cea7c8d5
6 changed files with 24 additions and 56 deletions

View file

@ -549,8 +549,7 @@ namespace polynomial {
increase_capacity(sz * 2);
SASSERT(sz < m_capacity);
m_ptr->m_size = sz;
if (sz == 0) return;
memcpy(m_ptr->m_powers, pws, sizeof(power) * sz);
std::uninitialized_copy(pws, pws + sz, m_ptr->m_powers);
}
void reset() {