aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/crc64_fast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblzma/check/crc64_fast.c')
-rw-r--r--src/liblzma/check/crc64_fast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c
index e42fc3dc..52af29ed 100644
--- a/src/liblzma/check/crc64_fast.c
+++ b/src/liblzma/check/crc64_fast.c
@@ -46,9 +46,10 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
while (buf < limit) {
#ifdef WORDS_BIGENDIAN
- const uint32_t tmp = (crc >> 32) ^ *(uint32_t *)(buf);
+ const uint32_t tmp = (crc >> 32)
+ ^ *(const uint32_t *)(buf);
#else
- const uint32_t tmp = crc ^ *(uint32_t *)(buf);
+ const uint32_t tmp = crc ^ *(const uint32_t *)(buf);
#endif
buf += 4;