Merge pull request #10903 from shuffle2/hash-reorg

Common/Hash: use zlib-ng for adler32. small cleanups.
This commit is contained in:
Tilka 2022-08-02 18:29:04 +01:00 committed by GitHub
commit 7d2d5d914b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 190 additions and 252 deletions

View file

@ -1175,8 +1175,8 @@ void VolumeVerifier::Process()
if (m_hashes_to_calculate.crc32)
{
m_crc32_future = std::async(std::launch::async, [this, byte_increment] {
m_crc32_context =
Common::UpdateCRC32(m_crc32_context, m_data.data(), static_cast<u32>(byte_increment));
m_crc32_context = Common::UpdateCRC32(m_crc32_context, m_data.data(),
static_cast<size_t>(byte_increment));
});
}