From 0974983a39d17e3b081e238c52d17f1ece3ffe0f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 2 Oct 2023 22:32:23 +0900 Subject: [PATCH] [qfcc] Set expression associativity field I forgot this when adding the option. --- tools/qfcc/source/expr_binary.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/expr_binary.c b/tools/qfcc/source/expr_binary.c index 4444983d7..d091b9d11 100644 --- a/tools/qfcc/source/expr_binary.c +++ b/tools/qfcc/source/expr_binary.c @@ -1398,6 +1398,9 @@ binary_expr (int op, const expr_t *e1, const expr_t *e2) if (expr_type->anticommute) { ne->expr.anticommute = expr_type->anticommute (); } + if (expr_type->associative) { + ne->expr.associative = expr_type->associative (); + } if (is_compare (op) || is_logic (op)) { if (options.code.progsversion == PROG_ID_VERSION) { ne->expr.type = &type_float;