1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibJS: Replace MAX_U32 with NumericLimits<u32>::max()

This commit is contained in:
Linus Groh 2021-04-17 19:34:33 +02:00
parent 8e0beda13a
commit eedde500eb
3 changed files with 2 additions and 4 deletions

View file

@ -552,7 +552,7 @@ i32 Value::as_i32() const
u32 Value::as_u32() const
{
VERIFY(as_double() >= 0);
return min((double)as_i32(), MAX_U32);
return min((u32)as_i32(), NumericLimits<u32>::max());
}
double Value::to_double(GlobalObject& global_object) const