summaryrefslogtreecommitdiff
path: root/src/misc/crc32.hpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
committeralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
commitbe6c0584240caf420b2475a0be036391e842e8af (patch)
tree6111751cf5526e1eb41176782d84766c4e9ed185 /src/misc/crc32.hpp
parent645b6ce77345867fa96861843197481131566c46 (diff)
downloadopenttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/misc/crc32.hpp')
-rw-r--r--src/misc/crc32.hpp3
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;