Commit bd7e5672 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2850] constify

parent 85873bf8
...@@ -121,7 +121,7 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode, ...@@ -121,7 +121,7 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode,
// closed. Check that its checksum is consistent. // closed. Check that its checksum is consistent.
uint32_t* checksum = static_cast<uint32_t*> uint32_t* checksum = static_cast<uint32_t*>
(segment->getNamedAddress("zone_table_checksum")); (segment->getNamedAddress("zone_table_checksum"));
uint32_t saved_checksum = *checksum; const uint32_t saved_checksum = *checksum;
// First, clear the checksum so that getCheckSum() returns // First, clear the checksum so that getCheckSum() returns
// a consistent value. // a consistent value.
*checksum = 0; *checksum = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment