Index: src/snapshot/serializer-common.h |
diff --git a/src/snapshot/serializer-common.h b/src/snapshot/serializer-common.h |
index d445cb95c976eb888cc7c0fdfec71337a25367f0..6d28fcd2fb2ab84483611e3fa46996c8024a680e 100644 |
--- a/src/snapshot/serializer-common.h |
+++ b/src/snapshot/serializer-common.h |
@@ -271,13 +271,12 @@ class SerializedData { |
protected: |
void SetHeaderValue(int offset, uint32_t value) { |
- uint32_t* address = reinterpret_cast<uint32_t*>(data_ + offset); |
- memcpy(reinterpret_cast<uint32_t*>(address), &value, sizeof(value)); |
+ memcpy(data_ + offset, &value, sizeof(value)); |
} |
uint32_t GetHeaderValue(int offset) const { |
uint32_t value; |
- memcpy(&value, reinterpret_cast<int*>(data_ + offset), sizeof(value)); |
+ memcpy(&value, data_ + offset, sizeof(value)); |
return value; |
} |