summaryrefslogtreecommitdiff
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
commitdb9d5a909fb94d9a2640ed75e644e9d874b3874f (patch)
treedea20321ff87bac5c73c55f49337caeabf5663f5
parent1e74834441e426052ad24783b8f374fa9172b1d0 (diff)
downloadopenttd-db9d5a909fb94d9a2640ed75e644e9d874b3874f.tar.xz
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
-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);
}
/**