The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
[WebKit.git] / Source / WebCore / bindings / scripts / test / JS / JSFloat64Array.cpp
index 5398484..5591c31 100644 (file)
@@ -282,7 +282,7 @@ JSValue JSFloat64Array::getByIndex(ExecState*, unsigned index)
 {
     ASSERT_GC_OBJECT_INHERITS(this, &s_info);
     double result = static_cast<Float64Array*>(impl())->item(index);
-    if (isnan(result))
+    if (std::isnan(result))
         return jsNaN();
     return JSValue(result);
 }