checkbufferoverrun.cpp: fix a /W4 MSVC warning
This commit is contained in:
parent
b180e92b4c
commit
99fc5f6203
|
@ -1324,7 +1324,7 @@ bool CheckBufferOverrun::isArrayOfStruct(const Token* tok, int &position)
|
|||
if (Token::Match(tok->next(), "%var% [ %num% ] ")) {
|
||||
tok = tok->tokAt(4);
|
||||
int i = 1;
|
||||
while (true) {
|
||||
for (;;) {
|
||||
if (Token::Match(tok->next(), "[ %num% ] ")) {
|
||||
i++;
|
||||
tok = tok->tokAt(4);
|
||||
|
|
Loading…
Reference in New Issue