summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibJS/Runtime/MathObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/MathObject.cpp b/Libraries/LibJS/Runtime/MathObject.cpp
index 73ee7696c0..86ec01a72f 100644
--- a/Libraries/LibJS/Runtime/MathObject.cpp
+++ b/Libraries/LibJS/Runtime/MathObject.cpp
@@ -62,8 +62,8 @@ MathObject::MathObject()
put("LOG2E", Value(log2(M_E)), 0);
put("LOG10E", Value(log10(M_E)), 0);
put("PI", Value(M_PI), 0);
- put("SQRT1_2", Value(::sqrt(1.0 / 2.0)), 0);
- put("SQRT2", Value(::sqrt(2)), 0);
+ put("SQRT1_2", Value(M_SQRT1_2), 0);
+ put("SQRT2", Value(M_SQRT2), 0);
}
MathObject::~MathObject()