From ce6c9d45a11e808767a391c8cd460a91537b0ba9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 22 May 2019 23:26:40 +0200 Subject: [PATCH] :bug: Fix (breaked) repeat stack --- 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 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; } -- 2.43.0