checkbufferoverrun.cpp: fix a /W4 MSVC warning

This commit is contained in:
XhmikosR 2013-03-18 20:50:24 +02:00 committed by PKEuS
parent b180e92b4c
commit 99fc5f6203
1 changed files with 1 additions and 1 deletions

View File

@ -1324,7 +1324,7 @@ bool CheckBufferOverrun::isArrayOfStruct(const Token* tok, int &position)
if (Token::Match(tok->next(), "%var% [ %num% ] ")) { if (Token::Match(tok->next(), "%var% [ %num% ] ")) {
tok = tok->tokAt(4); tok = tok->tokAt(4);
int i = 1; int i = 1;
while (true) { for (;;) {
if (Token::Match(tok->next(), "[ %num% ] ")) { if (Token::Match(tok->next(), "[ %num% ] ")) {
i++; i++;
tok = tok->tokAt(4); tok = tok->tokAt(4);