Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make CRC32::GetChecksum() inline

  • Loading branch information...
commit 65c989150e45981ba5b860a922229dd058a5ef51 1 parent 256724d
@johnbartholomew johnbartholomew authored
Showing with 1 addition and 6 deletions.
  1. +0 −5 src/CRC32.cpp
  2. +1 −1  src/CRC32.h
View
5 src/CRC32.cpp
@@ -34,8 +34,3 @@ void CRC32::AddData(const char *data, int length)
while (length--)
m_checksum = (m_checksum >> 8) ^ s_lookupTable[(m_checksum & 0xff) ^ *buf++];
}
-
-Uint32 CRC32::GetChecksum() const
-{
- return m_checksum & 0xffffffff;
-}
View
2  src/CRC32.h
@@ -9,7 +9,7 @@ class CRC32 {
CRC32();
void AddData(const char *data, int length);
- Uint32 GetChecksum() const;
+ Uint32 GetChecksum() const { return m_checksum; }
private:
Uint32 m_checksum;
Please sign in to comment.
Something went wrong with that request. Please try again.