From 93c5300fc5cf8041b4e57eac0c714d5f55a6ed8b Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 1 Jul 2009 21:29:03 +0000 Subject: (svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function --- src/core/math_func.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core') 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 static FORCEINLINE T *AlignPtr(T *x, uint n) { + assert_compile(sizeof(size_t) == sizeof(void *)); return (T *)Align((size_t)x, n); } -- cgit v1.2.3-70-g09d2