aboutsummaryrefslogtreecommitdiffstats
path: root/common/almalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/almalloc.h')
-rw-r--r--common/almalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/almalloc.h b/common/almalloc.h
index 7ec07004..26fa37ee 100644
--- a/common/almalloc.h
+++ b/common/almalloc.h
@@ -73,7 +73,7 @@ inline T* assume_aligned(T *ptr) noexcept
{
static_assert((alignment & (alignment-1)) == 0, "alignment must be a power of 2");
#ifdef __GNUC__
- return reinterpret_cast<T*>(__builtin_assume_aligned(ptr, alignment));
+ return static_cast<T*>(__builtin_assume_aligned(ptr, alignment));
#elif defined(_MSC_VER)
auto ptrval = reinterpret_cast<uintptr_t>(ptr);
if((ptrval&(alignment-1)) != 0) __assume(0);