From dd6c13abb08a9a7c92d1a0c8921b6a474a040a3a Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 8 Jan 2014 11:27:11 -0800 Subject: [PATCH] fix(util/buffer): warning produced by clang++ Signed-off-by: Leonardo de Moura --- src/util/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/buffer.h b/src/util/buffer.h index 6229b3040..8b8c34452 100644 --- a/src/util/buffer.h +++ b/src/util/buffer.h @@ -32,7 +32,7 @@ protected: void expand() { unsigned new_capacity = m_capacity << 1; char * new_buffer = new char[sizeof(T) * new_capacity]; - std::memcpy(new_buffer, m_buffer, m_pos * sizeof(T)); + std::memcpy(new_buffer, static_cast(m_buffer), m_pos * sizeof(T)); free_memory(); m_buffer = reinterpret_cast(new_buffer); m_capacity = new_capacity;