Fix compile warnings

This commit is contained in:
def 2014-11-23 21:24:20 +01:00
parent 197ed5dca3
commit 4d4d8ad5e8
2 changed files with 2 additions and 2 deletions

View file

@ -1531,7 +1531,7 @@ int CServer::LoadMap(const char *pMapName)
// load complete map into memory for download
{
IOHANDLE File = Storage()->OpenFile(aBuf, IOFLAG_READ, IStorage::TYPE_ALL);
m_CurrentMapSize = (int)io_length(File);
m_CurrentMapSize = (unsigned int)io_length(File);
if(m_pCurrentMapData)
mem_free(m_pCurrentMapData);
m_pCurrentMapData = (unsigned char *)mem_alloc(m_CurrentMapSize, 1);

View file

@ -178,7 +178,7 @@ public:
char m_aCurrentMap[64];
unsigned m_CurrentMapCrc;
unsigned char *m_pCurrentMapData;
int m_CurrentMapSize;
unsigned int m_CurrentMapSize;
CDemoRecorder m_aDemoRecorder[MAX_CLIENTS+1];
CRegister m_Register;