From: fennecdjay Date: Wed, 22 May 2019 21:26:40 +0000 (+0200) Subject: :bug: Fix (breaked) repeat stack X-Git-Tag: nightly~2451 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ce6c9d45a11e808767a391c8cd460a91537b0ba9;p=gwion.git :bug: Fix (breaked) repeat stack --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 5bb689f2..c2dcb514 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1242,8 +1242,8 @@ ANN static m_bool emit_stmt_loop(const Emitter emit, const Stmt_Loop stmt) { const Instr _goto = emit_add_instr(emit, Goto); _goto->m_val = index; op->m_val = emit_code_size(emit); - regpop(emit, SZ_INT); emit_pop_stack(emit, index); + regpop(emit, SZ_INT); return GW_OK; }