]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/CachedTranscendentalFunction.h
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / runtime / CachedTranscendentalFunction.h
index f31b4a07f2ddc2ab1767f5cb94f0aea7b1b48335..392d64fa5ae3792038dc810bb086270e327d88ef 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef CachedTranscendentalFunction_h
 #define CachedTranscendentalFunction_h
 
-#include "JSValue.h"
+#include "JSCJSValue.h"
 
 namespace JSC {
 
@@ -74,8 +74,8 @@ private:
         // Lazily allocate the table, populate with NaN->NaN mapping.
         m_cache = static_cast<CacheEntry*>(fastMalloc(s_cacheSize * sizeof(CacheEntry)));
         for (unsigned x = 0; x < s_cacheSize; ++x) {
-            m_cache[x].operand = std::numeric_limits<double>::quiet_NaN();
-            m_cache[x].result = std::numeric_limits<double>::quiet_NaN();
+            m_cache[x].operand = QNaN;
+            m_cache[x].result = QNaN;
         }
     }