From 1c281662daa9359dbc4bea77cfba62e0484ff3c2 Mon Sep 17 00:00:00 2001 From: Nicolas Le Cam Date: Sun, 21 Dec 2008 17:51:07 +0000 Subject: [PATCH] Fix signed/unsigned warning (thanks Aggro) --- tokenize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tokenize.cpp b/tokenize.cpp index 7eef56cc4..048715953 100644 --- a/tokenize.cpp +++ b/tokenize.cpp @@ -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(); } }