Skip to content

Commit d5e17e0

Browse files
Update tokenlist.cpp
1 parent 10bab82 commit d5e17e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/tokenlist.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ static void compileBinOp(Token *&tok, AST_state& state, void (*f)(Token *&tok, A
730730
if (!state.op.empty()) {
731731
binop->astOperand1(state.op.top());
732732
state.op.pop();
733+
if (binop->str() == "(" && binop->astOperand1()->isStandardType())
734+
binop->isCast(true);
733735
}
734736
state.op.push(binop);
735737
}

0 commit comments

Comments
 (0)