Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7a3057ae634c2df6aae7063f064608838f2a39c2..4601bd127076246d34ed55f991a7c3cc795030d1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -14935,7 +14935,7 @@ Handle<Object> ExternalFloat32Array::SetValue( |
Handle<ExternalFloat32Array> array, |
uint32_t index, |
Handle<Object> value) { |
- float cast_value = static_cast<float>(base::OS::nan_value()); |
+ float cast_value = std::numeric_limits<float>::quiet_NaN(); |
if (index < static_cast<uint32_t>(array->length())) { |
if (value->IsSmi()) { |
int int_value = Handle<Smi>::cast(value)->value(); |
@@ -14958,7 +14958,7 @@ Handle<Object> ExternalFloat64Array::SetValue( |
Handle<ExternalFloat64Array> array, |
uint32_t index, |
Handle<Object> value) { |
- double double_value = base::OS::nan_value(); |
+ double double_value = std::numeric_limits<double>::quiet_NaN(); |
if (index < static_cast<uint32_t>(array->length())) { |
if (value->IsNumber()) { |
double_value = value->Number(); |