assign-if: Fixed token match

This commit is contained in:
Daniel Marjamäki 2012-09-29 10:41:34 +02:00
parent 44926654a4
commit b6153a00ee
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ bool CheckAssignIf::assignIfParseScope(const Token * const assignTok,
const MathLib::bigint num)
{
for (const Token *tok2 = startTok; tok2; tok2 = tok2->next()) {
if (Token::Match(tok2, "[(,] &| %varid% [,)]"))
if (Token::Match(tok2, "[(,] &| %varid% [,)]", varid))
return true;
if (tok2->str() == "}")
return false;