diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-11-22 12:05:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-11-22 12:05:33 +0200 |
commit | f1a28b96c900c658fe016852ff62f6c24d1f50fa (patch) | |
tree | 304ffe8bed1b8e80b536180494f7841008dab721 /src/liblzma/check/crc64_fast.c | |
parent | Enable assembler code only if it is known to work (diff) | |
download | xz-f1a28b96c900c658fe016852ff62f6c24d1f50fa.tar.xz |
Add missing consts to pointer casts.
Diffstat (limited to '')
-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 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; |