Skip to content

Commit 618f5fd

Browse files
Update tokenlist.cpp
1 parent 2127a08 commit 618f5fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static bool iscast(const Token *tok, bool cpp)
547547
if (!Token::Match(tok2, "%name%|*|::"))
548548
return false;
549549

550-
if (tok2->isStandardType() && (tok2->strAt(1) != "(" || Token::Match(tok2->linkAt(1)->tokAt(-1), "* )")))
550+
if (tok2->isStandardType() && (tok2->strAt(1) != "(" || Token::simpleMatch(tok2->linkAt(1)->tokAt(-1), "* )")))
551551
type = true;
552552
}
553553

0 commit comments

Comments
 (0)