fix(util/small_object_allocator): warning
This commit is contained in:
parent
0c0dec8aa6
commit
11b63b0fcd
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ void small_object_allocator::deallocate(size_t size, void * p) {
|
|||
if (size == 0) return;
|
||||
#if LEAN_DEBUG
|
||||
// Valgrind friendly
|
||||
delete[] p;
|
||||
delete[] static_cast<char*>(p);
|
||||
return;
|
||||
#endif
|
||||
lean_assert(m_alloc_size >= size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue