diff options
author | Vas Crabb <vas@vastheman.com> | 2017-02-02 14:36:48 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2017-02-02 14:36:48 +1100 |
commit | 9568b26c355e480bcb779b64c0aad6a4e6c18666 (patch) | |
tree | c48917f0d0d63b3f087dcb5d897410f29376339f /src/lib/util | |
parent | 38a6ab02e4cb86cfbd7e2328c078b6b219030133 (diff) |
fix chd build (nw)
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/chd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/util/chd.cpp b/src/lib/util/chd.cpp index 0db64344861..dc7c334b1bf 100644 --- a/src/lib/util/chd.cpp +++ b/src/lib/util/chd.cpp @@ -885,7 +885,7 @@ chd_error chd_file::read_hunk(uint32_t hunknum, void *buffer) // get a pointer to the map entry uint64_t blockoffs; uint32_t blocklen; - uint32_t blockcrc; + util::crc32_t blockcrc; uint8_t *rawmap; uint8_t *dest = reinterpret_cast<uint8_t *>(buffer); switch (m_version) @@ -2147,12 +2147,12 @@ void chd_file::decompress_v5_map() // read the reader uint8_t rawbuf[16]; file_read(m_mapoffset, rawbuf, sizeof(rawbuf)); - uint32_t mapbytes = be_read(&rawbuf[0], 4); - uint64_t firstoffs = be_read(&rawbuf[4], 6); - uint16_t mapcrc = be_read(&rawbuf[10], 2); - uint8_t lengthbits = rawbuf[12]; - uint8_t selfbits = rawbuf[13]; - uint8_t parentbits = rawbuf[14]; + uint32_t const mapbytes = be_read(&rawbuf[0], 4); + uint64_t const firstoffs = be_read(&rawbuf[4], 6); + util::crc16_t const mapcrc = be_read(&rawbuf[10], 2); + uint8_t const lengthbits = rawbuf[12]; + uint8_t const selfbits = rawbuf[13]; + uint8_t const parentbits = rawbuf[14]; // now read the map std::vector<uint8_t> compressed(mapbytes); |