From db9d5a909fb94d9a2640ed75e644e9d874b3874f Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 20 Feb 2008 19:42:06 +0000 Subject: (svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets --- src/core/math_func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index 8faa67c11..e68573a81 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -177,7 +177,7 @@ static inline int32 ClampToI32(const int64 a) */ static inline uint16 ClampToU16(const uint64 a) { - return min(a, UINT16_MAX); + return min(a, 0xFFFF); } /** -- cgit v1.2.3-70-g09d2