From a64e9643fd7c4114c444e5a0c4d840a55fb79714 Mon Sep 17 00:00:00 2001 From: radrow Date: Sun, 3 Jul 2022 16:04:01 +0200 Subject: [PATCH] . --- src/aeso_fcode_to_fate.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index ff34f42..0bb5107 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -378,7 +378,7 @@ to_scode1(Env, {loop, Init, It, Expr}) -> InitS = to_scode(Env, Init) ++ [{jump, ContRef}], {ItV, Env1} = bind_local(It, Env), ExprS = to_scode(bind_loop(ContRef, BreakRef, ItV, Env1), Expr) ++ [{jumpif, ?a, ContRef}, {jump, BreakRef}], - [{loop, InitS, ItV, ExprS, ContRef, BreakRef}]; + [{loop, InitS, It, ExprS, ContRef, BreakRef}]; to_scode1(Env = #env{cont_ref = ContRef, loop_it = It}, {continue, Expr}) -> ExprS = to_scode1(Env, Expr), ExprS ++ [{'STORE', It, ?a}, push(?i(1))];