summaryrefslogtreecommitdiff
path: root/src/core/math_func.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/math_func.hpp')
-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);
}
/**