From: Jérémie Astor Date: Sun, 6 Dec 2020 18:06:21 +0000 (+0100) Subject: :bug: Fix foreach referencing X-Git-Tag: nightly~1123 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d7be03275cd26ed03cf8c7b82596bcaf499c8718;p=gwion.git :bug: Fix foreach referencing --- 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);