mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibM: Add NAN macro
This commit is contained in:
parent
d315281d56
commit
8a94813007
3 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue