summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-20 19:42:06 +0000
committersmatz <smatz@openttd.org>2008-02-20 19:42:06 +0000
commite0b0ecc5a7781266e32ae6ee888d82a996635440 (patch)
treedea20321ff87bac5c73c55f49337caeabf5663f5 /src/core
parent91297d4732d8d90f8d8e638e4d1711d2ee1164ce (diff)
downloadopenttd-e0b0ecc5a7781266e32ae6ee888d82a996635440.tar.xz
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
Diffstat (limited to 'src/core')
-rw-r--r--src/core/math_func.hpp2
1 files changed, 1 insertions, 1 deletions
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);
}
/**