diff options
author | smatz <smatz@openttd.org> | 2008-02-20 19:42:06 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-20 19:42:06 +0000 |
commit | e0b0ecc5a7781266e32ae6ee888d82a996635440 (patch) | |
tree | dea20321ff87bac5c73c55f49337caeabf5663f5 | |
parent | 91297d4732d8d90f8d8e638e4d1711d2ee1164ce (diff) | |
download | openttd-e0b0ecc5a7781266e32ae6ee888d82a996635440.tar.xz |
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
-rw-r--r-- | src/core/math_func.hpp | 2 |
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); } /** |