summaryrefslogtreecommitdiff
path: root/lzo/src/lzo_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzo/src/lzo_crc.c')
-rw-r--r--lzo/src/lzo_crc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lzo/src/lzo_crc.c b/lzo/src/lzo_crc.c
index 83941ab2..f5632cfc 100644
--- a/lzo/src/lzo_crc.c
+++ b/lzo/src/lzo_crc.c
@@ -2,6 +2,9 @@
This file is part of the LZO real-time data compression library.
+ Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
@@ -112,7 +115,7 @@ lzo_get_crc32_table(void)
#if 1
#define LZO_DO1(buf,i) \
- crc = table[((int)crc ^ buf[i]) & 0xff] ^ (crc >> 8)
+ crc = table[((unsigned)crc ^ buf[i]) & 0xff] ^ (crc >> 8)
#else
#define LZO_DO1(buf,i) \
crc = table[(unsigned char)((unsigned char)crc ^ buf[i])] ^ (crc >> 8)