summaryrefslogtreecommitdiff
path: root/src/misc/crc32.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
commit11da45ee55957c243854cd78705d81543541c061 (patch)
tree29e703244d28f29c8634b2d30f42b34852fe74bc /src/misc/crc32.hpp
parentc3839648f75ebfdca2f7d95b7d6a2b29445ab1c2 (diff)
downloadopenttd-11da45ee55957c243854cd78705d81543541c061.tar.xz
(svn r14949) -Cleanup: pointer coding style
Diffstat (limited to 'src/misc/crc32.hpp')
-rw-r--r--src/misc/crc32.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/misc/crc32.hpp b/src/misc/crc32.hpp
index 1d2f86dcd..2c0ca3abd 100644
--- a/src/misc/crc32.hpp
+++ b/src/misc/crc32.hpp
@@ -11,18 +11,18 @@ struct CCrc32
static uint32 Calc(const void *pBuffer, int nCount)
{
uint32 crc = 0xffffffff;
- const uint32* pTable = CrcTable();
+ const uint32 *pTable = CrcTable();
- uint8* begin = (uint8*)pBuffer;
- uint8* end = begin + nCount;
- for(uint8* cur = begin; cur < end; cur++)
+ uint8 *begin = (uint8*)pBuffer;
+ uint8 *end = begin + nCount;
+ for(uint8 *cur = begin; cur < end; cur++)
crc = (crc >> 8) ^ pTable[cur[0] ^ (uint8)(crc & 0xff)];
crc ^= 0xffffffff;
return crc;
}
- static const uint32* CrcTable()
+ static const uint32 *CrcTable()
{
static const uint32 Table[256] =
{