chore(*): fix warnings produced by clang++
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d29d23cade
commit
95515ca5df
2 changed files with 4 additions and 3 deletions
|
@ -233,7 +233,8 @@ object environment_cell::get_object(name const & n) const {
|
|||
}
|
||||
}
|
||||
|
||||
struct universes {
|
||||
class universes {
|
||||
public:
|
||||
std::vector<level> m_uvars;
|
||||
universe_constraints m_constraints;
|
||||
};
|
||||
|
|
|
@ -31,10 +31,10 @@ protected:
|
|||
|
||||
void expand() {
|
||||
unsigned new_capacity = m_capacity << 1;
|
||||
T * new_buffer = reinterpret_cast<T*>(new char[sizeof(T) * new_capacity]);
|
||||
char * new_buffer = new char[sizeof(T) * new_capacity];
|
||||
std::memcpy(new_buffer, m_buffer, m_pos * sizeof(T));
|
||||
free_memory();
|
||||
m_buffer = new_buffer;
|
||||
m_buffer = reinterpret_cast<T*>(new_buffer);
|
||||
m_capacity = new_capacity;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue