Fix warnings

This commit is contained in:
Redix 2017-09-28 19:27:15 +02:00
parent 2586c001b7
commit 245afcb4b2
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ CGhost::CGhostPath &CGhost::CGhostPath::operator = (CGhostPath &&Other)
void CGhost::CGhostPath::Reset(int ChunkSize)
{
for(int i = 0; i < m_lChunks.size(); i++)
for(unsigned i = 0; i < m_lChunks.size(); i++)
mem_free(m_lChunks[i]);
m_lChunks.clear();
m_ChunkSize = ChunkSize;

View file

@ -221,7 +221,7 @@ bool CRaceDemo::CheckDemo(int Time) const
Storage()->ListDirectoryInfo(IStorage::TYPE_SAVE, ms_pRaceDemoDir, RaceDemolistFetchCallback, &Param);
// loop through demo files
for(int i = 0; i < lDemos.size(); i++)
for(unsigned i = 0; i < lDemos.size(); i++)
{
if(Time >= lDemos[i].m_Time) // found a better demo
return false;