Files
ladybird/Userland/Libraries/LibJS
Daniel Bertalan fd76e71934 LibJS: Fix UB in Math.clz32
If the argument to this function is greater then or equal to 2^32, the
`double` => `u32` cast produces undefined behavior, which Clang catches.
To fix this, we now use `ToUint32` for getting the integer argument, as
specified by ECMA-262.
2021-08-08 10:55:36 +02:00
..
2021-08-01 08:10:16 +02:00
2021-08-08 10:55:36 +02:00