diff options
Diffstat (limited to 'src/misc/crc32.hpp')
-rw-r--r-- | src/misc/crc32.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc/crc32.hpp b/src/misc/crc32.hpp index af7eac4c4..a4b0eefc4 100644 --- a/src/misc/crc32.hpp +++ b/src/misc/crc32.hpp @@ -22,8 +22,9 @@ struct CCrc32 uint8 *begin = (uint8*)pBuffer; uint8 *end = begin + nCount; - for (uint8 *cur = begin; cur < end; cur++) + for (uint8 *cur = begin; cur < end; cur++) { crc = (crc >> 8) ^ pTable[cur[0] ^ (uint8)(crc & 0xff)]; + } crc ^= 0xffffffff; return crc; |