diff --git a/libc/src/stdlib/block.h b/libc/src/stdlib/block.h index ce26add082d0a..afb18c1ef738f 100644 --- a/libc/src/stdlib/block.h +++ b/libc/src/stdlib/block.h @@ -39,8 +39,8 @@ LIBC_INLINE constexpr size_t align_down(size_t value, size_t alignment) { } /// Returns the value rounded down to the nearest multiple of alignment. -LIBC_INLINE template -constexpr T *align_down(T *value, size_t alignment) { +template +LIBC_INLINE constexpr T *align_down(T *value, size_t alignment) { return reinterpret_cast( align_down(reinterpret_cast(value), alignment)); }