1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17: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

@ -37,8 +37,6 @@
// 2 ** 53 - 1
static constexpr double MAX_ARRAY_LIKE_INDEX = 9007199254740991.0;
// 2 ** 32 - 1
static constexpr double MAX_U32 = 4294967295.0;
// Unique bit representation of negative zero (only sign bit set)
static constexpr u64 NEGATIVE_ZERO_BITS = ((u64)1 << 63);