mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Fold constants on both sides of = to ensure correct expression types.
This commit is contained in:
parent
5b8345eecb
commit
3c1784d46c
1 changed files with 3 additions and 0 deletions
|
@ -2423,6 +2423,9 @@ assign_expr (expr_t *e1, expr_t *e2)
|
|||
if (e2->type == ex_error)
|
||||
return e2;
|
||||
|
||||
e1 = fold_constants (e1);
|
||||
e2 = fold_constants (e2);
|
||||
|
||||
if (options.traditional) {
|
||||
if (e2->type == ex_expr && !e2->paren
|
||||
&& (e2->e.expr.op == AND || e2->e.expr.op == OR)) {
|
||||
|
|
Loading…
Reference in a new issue