From: Jérémie Astor Date: Sun, 8 Mar 2020 20:04:36 +0000 (+0100) Subject: :bug: Fix stmt_loop X-Git-Tag: nightly~1726^2~37 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=cd6398b8b862adb24e26098edc2d3579eb67bed9;p=gwion.git :bug: Fix stmt_loop --- 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))