(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
authorsmatz
Wed, 20 Feb 2008 19:42:06 +0000
changeset 9117 5aaa21219f68
parent 9116 6c4b16c2ebea
child 9118 bf19f7f901bc
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
src/core/math_func.hpp
--- a/src/core/math_func.hpp	Wed Feb 20 19:37:46 2008 +0000
+++ b/src/core/math_func.hpp	Wed Feb 20 19:42:06 2008 +0000
@@ -177,7 +177,7 @@
  */
 static inline uint16 ClampToU16(const uint64 a)
 {
-	return min(a, UINT16_MAX);
+	return min(a, 0xFFFF);
 }
 
 /**