Skip to content

Commit 5e6d0a2

Browse files
Update tokenlist.cpp
1 parent f27f35b commit 5e6d0a2

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
@@ -873,7 +873,7 @@ static void compileTerm(Token *&tok, AST_state& state)
873873
state.inArrayAssignment--;
874874
tok = tok1->link()->next();
875875
}
876-
} else if (!state.inArrayAssignment && !Token::simpleMatch(prev, "=")) {
876+
} else if ((!state.inArrayAssignment && !Token::simpleMatch(prev, "=")) || Token::simpleMatch(prev, "?")) {
877877
state.op.push(tok);
878878
tok = tok->link()->next();
879879
} else {

0 commit comments

Comments
 (0)