Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index f3a029ee340c79b043bbc7d239fb22cb6e4039b9..0ac8bca8823a6201dad2edbd1cace9e6febd337a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -860,7 +860,7 @@ double Object::Number() { |
bool Object::IsNaN() { |
- return this->IsHeapNumber() && isnan(HeapNumber::cast(this)->value()); |
+ return this->IsHeapNumber() && std::isnan(HeapNumber::cast(this)->value()); |
} |
@@ -1921,7 +1921,7 @@ void FixedDoubleArray::set(int index, double value) { |
ASSERT(map() != HEAP->fixed_cow_array_map() && |
map() != HEAP->fixed_array_map()); |
int offset = kHeaderSize + index * kDoubleSize; |
- if (isnan(value)) value = canonical_not_the_hole_nan_as_double(); |
+ if (std::isnan(value)) value = canonical_not_the_hole_nan_as_double(); |
WRITE_DOUBLE_FIELD(this, offset, value); |
} |