should not be for the variable (c) but for the (crc).
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@839
6a8cc165-1e22-0410-a132-
eb4e3f353aba
#define CRCPOLY 0xA001 /* CRC-16 (x^16+x^15+x^2+1) */
#define INITIALIZE_CRC(crc) ((crc) = 0)
#define UPDATE_CRC(crc, c) \
- (crctable[((unsigned char)(crc) ^ (c)) & 0xFF] ^ ((unsigned char)(crc) >> CHAR_BIT))
+ (crctable[((crc) ^ (unsigned char)(c)) & 0xFF] ^ ((crc) >> CHAR_BIT))
/* dhuf.c */
#define N_CHAR (256 + 60 - THRESHOLD + 1)