summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/lzop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/lzop.c b/archival/lzop.c
index d6cf6f4f5..ceace0436 100644
--- a/archival/lzop.c
+++ b/archival/lzop.c
@@ -475,7 +475,7 @@ lzo_crc32(uint32_t c, const uint8_t* buf, unsigned len)
475 475
476 crc = ~c; 476 crc = ~c;
477 if (len != 0) do { 477 if (len != 0) do {
478 crc = G.lzo_crc32_table[((int)crc ^ *buf) & 0xff] ^ (crc >> 8); 478 crc = G.lzo_crc32_table[(uint8_t)((int)crc ^ *buf)] ^ (crc >> 8);
479 buf += 1; 479 buf += 1;
480 len -= 1; 480 len -= 1;
481 } while (len > 0); 481 } while (len > 0);