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:
parent
8e0beda13a
commit
eedde500eb
3 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue