From d7be03275cd26ed03cf8c7b82596bcaf499c8718 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 6 Dec 2020 19:06:21 +0100 Subject: [PATCH] :bug: Fix foreach referencing --- 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 5cc0e65e..3ee47804 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1605,7 +1605,7 @@ ANN static m_bool _emit_stmt_each(const Emitter emit, const Stmt_Each stmt, m_ui Instr cpy = stmt->is_ptr ? emit_add_instr(emit, MemSetImm) : NULL; emit_local(emit, emit->gwion->type[et_int]); const m_uint offset = emit_local(emit, emit->gwion->type[et_int]); - emit_local(emit, emit->gwion->type[et_ptr]);//et_int + emit_local(emit, emit->gwion->type[et_int]);//et_int stmt->v->from->offset = offset + SZ_INT; const m_uint ini_pc = emit_code_size(emit); emit_except(emit, stmt->exp->info->type); -- 2.43.0