Index: Source/platform/Length.cpp |
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp |
index c0e64b2876460a701b0f5c9ba8009255d884103c..ad8339822be7bb87c5c7d2ff18687b95b6f0603e 100644 |
--- a/Source/platform/Length.cpp |
+++ b/Source/platform/Length.cpp |
@@ -149,7 +149,7 @@ public: |
CalculationValue* value = m_map.get(index); |
if (value->hasOneRef()) { |
// Force the CalculationValue destructor early to avoid a potential recursive call inside HashMap remove(). |
- m_map.set(index, 0); |
+ m_map.set(index, nullptr); |
m_map.remove(index); |
} else { |
value->deref(); |