Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 31439039de15f1506e13b117c2a56dd0b6109ac4..440b6934f3d43d10e201a5df97d3d626a7da3ae4 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2335,7 +2335,7 @@ void FixedDoubleArray::set(int index, double value) { |
map() != GetHeap()->fixed_array_map()); |
int offset = kHeaderSize + index * kDoubleSize; |
if (std::isnan(value)) { |
- WRITE_UINT64_FIELD(this, offset, V8_UINT64_C(0xFFFFFFFFFFFFFFFF)); |
+ WRITE_DOUBLE_FIELD(this, offset, std::numeric_limits<double>::quiet_NaN()); |
} else { |
WRITE_DOUBLE_FIELD(this, offset, value); |
} |