Commit 0cbcd365 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by hjk
Browse files

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



Change-Id: Icd72f6358a5e90a292178b1d78f80d42da2ab846
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6f3b4121
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment