diff --git a/src/liballocator/mem-heap.h b/src/liballocator/mem-heap.h index ce320b535..a1e78651f 100644 --- a/src/liballocator/mem-heap.h +++ b/src/liballocator/mem-heap.h @@ -89,7 +89,7 @@ extern void mem_heap_stats_reset_peak (void); #define MEM_DEFINE_LOCAL_ARRAY(var_name, number, type) \ { \ size_t var_name ## ___size = (size_t) (number) * sizeof (type); \ - type *var_name = (type *) mem_heap_alloc_block (var_name ## ___size, MEM_HEAP_ALLOC_SHORT_TERM); + type *var_name = static_cast (mem_heap_alloc_block (var_name ## ___size, MEM_HEAP_ALLOC_SHORT_TERM)); /** * Free the previously defined local array variable, freeing corresponding block on the heap,