Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index e8b065c4ea10b3615c43b0e0acf9badfa716822a..d6af89b38c0fd2342a267752bab58ecc9877c0da 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -27,7 +27,7 @@ |
#include "ast.h" |
-#include <math.h> // For isfinite. |
+#include <cmath> // For isfinite. |
#include "builtins.h" |
#include "code-stubs.h" |
#include "conversions.h" |
@@ -241,8 +241,8 @@ bool IsEqualNumber(void* first, void* second) { |
if (h2->IsSmi()) return false; |
Handle<HeapNumber> n1 = Handle<HeapNumber>::cast(h1); |
Handle<HeapNumber> n2 = Handle<HeapNumber>::cast(h2); |
- ASSERT(isfinite(n1->value())); |
- ASSERT(isfinite(n2->value())); |
+ ASSERT(std::isfinite(n1->value())); |
+ ASSERT(std::isfinite(n2->value())); |
return n1->value() == n2->value(); |
} |