Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 6, 2024
1 parent a6257c5 commit 9d4ccb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1572,8 +1572,11 @@ namespace {

return unknown();
} else if (expr->str() == "(" && expr->isCast()) {
if (expr->astOperand2() && expr->astOperand1()->str() != "dynamic_cast")
return execute(expr->astOperand2());
if (expr->astOperand2()) {
if (expr->astOperand1()->str() != "dynamic_cast")
return execute(expr->astOperand2());
return unknown();
}
return execute(expr->astOperand1());
}
if (expr->exprId() > 0 && pm->hasValue(expr->exprId())) {
Expand Down

0 comments on commit 9d4ccb3

Please sign in to comment.