Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index fbdffb06141606d2b975906dccfe33caf3f688d9..a885e9f061e98c1f5a38bddd6210ee1f3b2bd87b 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1260,7 +1260,7 @@ static Handle<Object> TryConvertKey(Handle<Object> key, Isolate* isolate) { |
// non-smi keys of keyed loads/stores to a smi or a string. |
if (key->IsHeapNumber()) { |
double value = Handle<HeapNumber>::cast(key)->value(); |
- if (isnan(value)) { |
+ if (std::isnan(value)) { |
key = isolate->factory()->nan_string(); |
} else { |
int int_value = FastD2I(value); |