diff options
Diffstat (limited to 'src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h')
-rw-r--r-- | src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h index 6da921f..501ab5e 100644 --- a/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h +++ b/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h @@ -25,7 +25,6 @@ #include "CallData.h" #include "ConstructData.h" -#include <math.h> #include <stddef.h> // for size_t #include <stdint.h> #include <wtf/AlwaysInline.h> @@ -612,7 +611,7 @@ namespace JSC { inline JSValue::JSValue(ExecState* exec, double d) { const int32_t asInt32 = static_cast<int32_t>(d); - if (asInt32 != d || (!asInt32 && signbit(d))) { // true for -0.0 + if (asInt32 != d || (!asInt32 && std::signbit(d))) { // true for -0.0 u.asDouble = d; return; } @@ -693,7 +692,7 @@ namespace JSC { inline JSValue::JSValue(JSGlobalData* globalData, double d) { const int32_t asInt32 = static_cast<int32_t>(d); - if (asInt32 != d || (!asInt32 && signbit(d))) { // true for -0.0 + if (asInt32 != d || (!asInt32 && std::signbit(d))) { // true for -0.0 u.asDouble = d; return; } |