Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index eb4c5826416fdecc4903e5f3f06eea61aee5cb2d..307e825216e63c4c492681f81652202ea86565be 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11757,7 +11757,7 @@ MaybeObject* ExternalUnsignedIntArray::SetValue(uint32_t index, Object* value) { |
MaybeObject* ExternalFloatArray::SetValue(uint32_t index, Object* value) { |
- float cast_value = OS::nan_value(); |
+ float cast_value = static_cast<float>(OS::nan_value()); |
Heap* heap = GetHeap(); |
if (index < static_cast<uint32_t>(length())) { |
if (value->IsSmi()) { |