From 3716d49cd9d340951f7e6ab878b2959fcdc1b730 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 8 Aug 2022 22:02:51 +0200 Subject: [PATCH] Allow arithmetic on variable values. --- mach/proto/as/comm7.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mach/proto/as/comm7.c b/mach/proto/as/comm7.c index 9b93139d4..969d0d84a 100644 --- a/mach/proto/as/comm7.c +++ b/mach/proto/as/comm7.c @@ -86,6 +86,9 @@ char* remember(char* s) int combine(int typ1, int typ2, int op) { + typ1 &= ~S_VAR; + typ2 &= ~S_VAR; + switch (op) { case '+': @@ -112,6 +115,7 @@ int combine(int typ1, int typ2, int op) return (S_ABS); break; } + fprintf(stderr, "typ1=%d typ2=%d pass=%d\n", typ1, typ2, pass); if (pass != PASS_1) serror("illegal operator"); return (S_UND);