diff options
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r-- | src/core/math_func.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index 35e660d88..2088f253c 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -116,12 +116,10 @@ static FORCEINLINE T Align(const T x, uint n) * @return The smallest multiple of n equal or greater than x * @see Align() */ - -assert_compile(sizeof(size_t) == sizeof(void *)); - template <typename T> static FORCEINLINE T *AlignPtr(T *x, uint n) { + assert_compile(sizeof(size_t) == sizeof(void *)); return (T *)Align((size_t)x, n); } |