From be6c0584240caf420b2475a0be036391e842e8af Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 24 Jul 2010 10:14:39 +0000 Subject: (svn r20211) -Codechange: Indented code should have curly braces around it. --- src/misc/crc32.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/misc/crc32.hpp') 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; -- cgit v1.2.3-54-g00ecf