diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 96d0cf906..59b94c018 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1872,7 +1872,7 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket) int GameTick = Unpacker.GetInt(); int DeltaTick = GameTick - Unpacker.GetInt(); int PartSize = 0; - int Crc = 0; + unsigned int Crc = 0; int CompleteSize = 0; const char *pData = 0; @@ -2160,7 +2160,7 @@ void CClient::ProcessServerPacketDummy(CNetChunk *pPacket) int GameTick = Unpacker.GetInt(); int DeltaTick = GameTick - Unpacker.GetInt(); int PartSize = 0; - int Crc = 0; + unsigned int Crc = 0; int CompleteSize = 0; const char *pData = 0; diff --git a/src/engine/shared/snapshot.cpp b/src/engine/shared/snapshot.cpp index cd6650f57..177bcf929 100644 --- a/src/engine/shared/snapshot.cpp +++ b/src/engine/shared/snapshot.cpp @@ -59,9 +59,9 @@ int CSnapshot::GetItemIndex(int Key) return -1; } -int CSnapshot::Crc() +unsigned CSnapshot::Crc() { - int Crc = 0; + unsigned int Crc = 0; for(int i = 0; i < m_NumItems; i++) { diff --git a/src/engine/shared/snapshot.h b/src/engine/shared/snapshot.h index 474eeacda..85a69add7 100644 --- a/src/engine/shared/snapshot.h +++ b/src/engine/shared/snapshot.h @@ -47,7 +47,7 @@ public: int GetItemIndex(int Key); int GetItemType(int Index); - int Crc(); + unsigned Crc(); void DebugDump(); static void RemoveExtraInfo(unsigned char *pData); };