From 7cf2818a4df5640748f6f7f46a87ee74ddfb988f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 8 Mar 2021 14:14:49 +0100 Subject: [PATCH] :art: Update Ogham --- plug | 2 +- src/emit/emit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plug b/plug index dc2a0084..4af16b90 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit dc2a0084b6d72f4d616e55f36afe946ba7747d3e +Subproject commit 4af16b90565747cbec90244c9106d48d4b5f5f1d diff --git a/src/emit/emit.c b/src/emit/emit.c index 07689b4e..e618d20b 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -302,7 +302,7 @@ ANN static void emit_pre_constructor_array(const Emitter emit, const Type type) regpop(emit, SZ_INT); const Instr pc = emit_add_instr(emit, Goto); pc->m_val = start_index; - top->m_val = emit_code_size(emit); + top->m_val = emit_code_size(emit) - !!emit->env->func; regpop(emit, SZ_INT*3); emit_add_instr(emit, ArrayPost); } -- 2.43.0