diff --git a/src/common/heap_array.h b/src/common/heap_array.h index 474dcf640..9a5a6a02d 100644 --- a/src/common/heap_array.h +++ b/src/common/heap_array.h @@ -9,8 +9,8 @@ #include #include #include -#include #include +#include template class FixedHeapArray @@ -361,10 +361,10 @@ private: { #ifdef _MSC_VER m_data = static_cast(_aligned_realloc(prev_ptr, size * sizeof(T), alignment)); - if (!m_data) + if (!m_data) [[unlikely]] Panic("Memory allocation failed."); #else - if (posix_memalign(reinterpret_cast(&m_data), alignment, size * sizeof(T)) != 0) + if (posix_memalign(reinterpret_cast(&m_data), alignment, size * sizeof(T)) != 0) [[unlikely]] Panic("Memory allocation failed."); if (prev_ptr) @@ -377,7 +377,7 @@ private: else { m_data = static_cast(std::realloc(prev_ptr, size * sizeof(T))); - if (!m_data) + if (!m_data) [[unlikely]] Panic("Memory allocation failed."); }