Fix signed/unsigned warning (thanks Aggro)

This commit is contained in:
Nicolas Le Cam 2008-12-21 17:51:07 +00:00
parent 1f68dfa57e
commit 1c281662da
1 changed files with 3 additions and 3 deletions

View File

@ -522,11 +522,11 @@ void Tokenizer::tokenizeCode(std::istream &code, const unsigned int FileIndex)
{ "public", ":", "public:" }
};
for (int i = 0; i < sizeof(combineWithNext) / sizeof(combineWithNext[0]); i++)
for (unsigned ui = 0; ui < sizeof(combineWithNext) / sizeof(combineWithNext[0]); ui++)
{
if ( tok->str() == combineWithNext[i][0] && tok->next()->str() == combineWithNext[i][1] )
if ( tok->str() == combineWithNext[ui][0] && tok->next()->str() == combineWithNext[ui][1] )
{
tok->setstr(combineWithNext[i][2]);
tok->setstr(combineWithNext[ui][2]);
tok->deleteNext();
}
}