ForwardAnalyser; Tweak fix for crash

This commit is contained in:
Daniel Marjamäki 2020-03-08 12:02:45 +01:00
parent 2600dee36c
commit f7612fd1a9
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ struct ForwardTraversal {
for (Token* tok = start; tok && tok != end; tok = tok->next()) {
Token* next = nullptr;
if (tok->str() == "(" && tok->isCast()) {
if (tok->str() == "(" && !tok->astOperand2() && tok->isCast()) {
tok = tok->link();
continue;
}