Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index c5cb8e5c2438345fd4a03e215540a71ee15c3af9..aabd806b7add6e341dbce8ec86da8ae6b39f0d1e 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -528,7 +528,7 @@ bool Deserializer::ReadData(Object** current, Object** limit, int source_space, |
int skip = source_.GetInt(); \ |
current = reinterpret_cast<Object**>( \ |
reinterpret_cast<Address>(current) + skip); \ |
- int reference_id = source_.GetInt(); \ |
+ uint32_t reference_id = static_cast<uint32_t>(source_.GetInt()); \ |
Address address = external_reference_table_->address(reference_id); \ |
new_object = reinterpret_cast<Object*>(address); \ |
} else if (where == kAttachedReference) { \ |