We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de2e836 commit 8034a70Copy full SHA for 8034a70
lib/mathlib.cpp
@@ -603,7 +603,7 @@ double MathLib::toDoubleNumber(const std::string &str)
603
// nullcheck
604
if (isNullValue(str))
605
return 0.0;
606
-#ifdef __clang__
+#ifdef _LIBCPP_VERSION
607
if (isFloat(str)) // Workaround libc++ bug at http://llvm.org/bugs/show_bug.cgi?id=17782
608
// TODO : handle locale
609
return std::strtod(str.c_str(), nullptr);
0 commit comments