changeset 8621:95d9404b7a41 draft

(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
author smatz <smatz@openttd.org>
date Wed, 20 Feb 2008 19:42:06 +0000
parents de810c8a5c08
children 8cccfd1e3607
files src/core/math_func.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/math_func.hpp
+++ b/src/core/math_func.hpp
@@ -177,7 +177,7 @@
  */
 static inline uint16 ClampToU16(const uint64 a)
 {
-	return min(a, UINT16_MAX);
+	return min(a, 0xFFFF);
 }
 
 /**