ForwardAnalyser; Tweak fix for crash
This commit is contained in:
parent
2600dee36c
commit
f7612fd1a9
|
@ -232,7 +232,7 @@ struct ForwardTraversal {
|
||||||
for (Token* tok = start; tok && tok != end; tok = tok->next()) {
|
for (Token* tok = start; tok && tok != end; tok = tok->next()) {
|
||||||
Token* next = nullptr;
|
Token* next = nullptr;
|
||||||
|
|
||||||
if (tok->str() == "(" && tok->isCast()) {
|
if (tok->str() == "(" && !tok->astOperand2() && tok->isCast()) {
|
||||||
tok = tok->link();
|
tok = tok->link();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue