diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-10-31 11:54:44 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-10-31 11:54:44 +0200 |
commit | 48dde3bab9dc04081acb5aa7cf7c5044b8a49f58 (patch) | |
tree | ad3f347c5ed8627d5cf5ff31a81f154c2277f7aa /src/liblzma/check/crc64_fast.c | |
parent | CMake: Sync tuklib_cpucores.cmake with tuklib_cpucores.m4. (diff) | |
download | xz-48dde3bab9dc04081acb5aa7cf7c5044b8a49f58.tar.xz |
liblzma: Silence -Wconversion warning from crc64_fast.c.
Diffstat (limited to 'src/liblzma/check/crc64_fast.c')
-rw-r--r-- | src/liblzma/check/crc64_fast.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c index 8af54cda..cf18ebc5 100644 --- a/src/liblzma/check/crc64_fast.c +++ b/src/liblzma/check/crc64_fast.c @@ -46,10 +46,11 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc) while (buf < limit) { #ifdef WORDS_BIGENDIAN - const uint32_t tmp = (crc >> 32) + const uint32_t tmp = (uint32_t)(crc >> 32) ^ aligned_read32ne(buf); #else - const uint32_t tmp = crc ^ aligned_read32ne(buf); + const uint32_t tmp = (uint32_t)crc + ^ aligned_read32ne(buf); #endif buf += 4; |