From 2a1419ccca1e04f822b1d5b5f91a72fdef7e48c4 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 27 May 2023 10:29:37 +1000 Subject: Fix a bug in the expression compiler. --- compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler.c') diff --git a/compiler.c b/compiler.c index c1086d4..44b2230 100644 --- a/compiler.c +++ b/compiler.c @@ -248,8 +248,8 @@ void generate(Compiler* c) { case op_mul: b = pop(c); a = pop(c); - gen_val(c, a, 0); - gen_val(c, b, 1); + gen_val(c, a, 1); + gen_val(c, b, 0); printf( "imul %%%s, %%%s\n", regs[1], -- cgit v1.2.3-54-g00ecf