diff options
Diffstat (limited to 'Utilities/cmliblzma/liblzma/check/crc64_fast.c')
-rw-r--r-- | Utilities/cmliblzma/liblzma/check/crc64_fast.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/liblzma/check/crc64_fast.c b/Utilities/cmliblzma/liblzma/check/crc64_fast.c index 52af29e..1436557 100644 --- a/Utilities/cmliblzma/liblzma/check/crc64_fast.c +++ b/Utilities/cmliblzma/liblzma/check/crc64_fast.c @@ -36,12 +36,14 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc) #endif if (size > 4) { + const uint8_t *limit; + while ((uintptr_t)(buf) & 3) { crc = lzma_crc64_table[0][*buf++ ^ A1(crc)] ^ S8(crc); --size; } - const uint8_t *const limit = buf + (size & ~(size_t)(3)); + limit = buf + (size & ~(size_t)(3)); size &= (size_t)(3); while (buf < limit) { |