Index: src/serialize.h |
diff --git a/src/serialize.h b/src/serialize.h |
index ce7d9478431c9e681b5cc8f759dd9ea6c6f45512..743c67479bf0e5fb97f4cee9df38c70953c771db 100644 |
--- a/src/serialize.h |
+++ b/src/serialize.h |
@@ -70,7 +70,7 @@ class ExternalReferenceEncoder { |
private: |
HashMap encodings_; |
static uint32_t Hash(Address key) { |
- return reinterpret_cast<uint32_t>(key) >> 2; |
+ return static_cast<uint32_t>(reinterpret_cast<uintptr_t>(key) >> 2); |
} |
int IndexOf(Address key) const; |