mirror of https://github.com/OpenTTD/OpenTTD
(svn r12204) -Fix (r12192): using UINT16_MAX broke compilation on many targets
parent
1e74834441
commit
db9d5a909f
|
@ -177,7 +177,7 @@ static inline int32 ClampToI32(const int64 a)
|
||||||
*/
|
*/
|
||||||
static inline uint16 ClampToU16(const uint64 a)
|
static inline uint16 ClampToU16(const uint64 a)
|
||||||
{
|
{
|
||||||
return min(a, UINT16_MAX);
|
return min(a, 0xFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue