Index: src/serialize.cc |
=================================================================== |
--- src/serialize.cc (revision 1145) |
+++ src/serialize.cc (working copy) |
@@ -814,8 +814,7 @@ |
void Update(Address start_address) { |
for (int i = 0; i < offsets_.length(); i++) { |
- Address* p = reinterpret_cast<Address*>(start_address + offsets_[i]); |
- *p = addresses_[i]; |
+ memcpy(start_address + offsets_[i], &addresses_[i], sizeof(Address)); |
} |
} |