1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibM: Add NAN macro

This commit is contained in:
Linus Groh 2020-06-04 13:03:15 +01:00 committed by Andreas Kling
parent d315281d56
commit 8a94813007
3 changed files with 5 additions and 3 deletions

View file

@ -32,6 +32,7 @@
#include <AK/Types.h>
#include <LibJS/Forward.h>
#include <LibJS/Runtime/Symbol.h>
#include <math.h>
// 2 ** 53 - 1
static constexpr double MAX_ARRAY_LIKE_INDEX = 9007199254740991.0;
@ -251,7 +252,7 @@ inline Value js_null()
inline Value js_nan()
{
return Value(__builtin_nan(""));
return Value(NAN);
}
inline Value js_infinity()