diff options
| author | quou <quou@disroot.org> | 2023-05-27 10:29:37 +1000 |
|---|---|---|
| committer | quou <quou@disroot.org> | 2023-05-27 10:29:37 +1000 |
| commit | 2a1419ccca1e04f822b1d5b5f91a72fdef7e48c4 (patch) | |
| tree | 18247600499ecb263203192f3ed197baee853461 | |
| parent | 42020fb6c9c0aae18bec1241ad31c3ff854c3f03 (diff) | |
Fix a bug in the expression compiler.
| -rw-r--r-- | compiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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], |