3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

fix gcc 9/10 warnings

This commit is contained in:
Nuno Lopes 2020-05-23 16:39:09 +01:00
parent d1d14111cb
commit 903725314c
6 changed files with 14 additions and 18 deletions

View file

@ -33,6 +33,7 @@ Notes:
#include "util/scoped_numeral_buffer.h"
#include "util/ref_buffer.h"
#include "util/common_msgs.h"
#include <memory>
namespace polynomial {
@ -528,7 +529,7 @@ namespace polynomial {
SASSERT(new_capacity > m_capacity);
monomial * new_ptr = allocate(new_capacity);
new_ptr->m_size = m_ptr->m_size;
memcpy(new_ptr->m_powers, m_ptr->m_powers, sizeof(power)*m_ptr->m_size);
std::uninitialized_copy(m_ptr->m_powers, m_ptr->m_powers + m_ptr->m_size, new_ptr->m_powers);
deallocate(m_ptr, m_capacity);
m_ptr = new_ptr;
m_capacity = new_capacity;