C++: Fix warning about comparing unsigned vs. int

Change-Id: Icd72f6358a5e90a292178b1d78f80d42da2ab846
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Nikolai Kosjar
2013-04-15 16:49:03 +02:00
committed by hjk
parent 6f3b41214b
commit 0cbcd365e5

View File

@@ -6440,7 +6440,7 @@ void Parser::rewind(unsigned cursor)
fprintf(stderr, "! rewinding from token %d to token %d\n", _tokenIndex, cursor);
#endif
const int n = _translationUnit->tokenCount();
const unsigned n = _translationUnit->tokenCount();
if (cursor < n)
_tokenIndex = cursor;
else