gcc: fixed compiler warning (suggest parantheses)

This commit is contained in:
Daniel Marjamäki 2010-07-14 09:46:08 +02:00
parent a1ce80806e
commit 233432a888
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ void CheckStl::eraseCheckLoop(const Token *it)
else if (Token::simpleMatch(tok, ("erase ( " + it->str() + " )").c_str()))
{
tok2 = tok;
while (tok2 = tok2 ? tok2->previous() : 0)
while (NULL != (tok2 = tok2 ? tok2->previous() : 0))
{
if (Token::Match(tok2, "[;{}]"))
break;