From cd6398b8b862adb24e26098edc2d3579eb67bed9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 8 Mar 2020 21:04:36 +0100 Subject: [PATCH] :bug: Fix stmt_loop --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index d7fb915b..67e22cee 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1286,7 +1286,7 @@ ANN static m_bool emit_stmt_loop(const Emitter emit, const Stmt_Loop stmt) { const m_uint index = emit_code_size(emit); const Instr cpy = emit_add_instr(emit, Reg2RegAddr); cpy->m_val2 = -SZ_INT; - regpushi(emit, SZ_INT); + regpush(emit, SZ_INT); emit_add_instr(emit, int_post_dec); const Instr op = emit_add_instr(emit, BranchEqInt); CHECK_BB(scoped_stmt(emit, stmt->body, 1)) -- 2.43.0