]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update Ogham
authorJérémie Astor <fennecdjay@gmail.com>
Mon, 8 Mar 2021 13:14:49 +0000 (14:14 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Mon, 8 Mar 2021 13:14:49 +0000 (14:14 +0100)
plug
src/emit/emit.c

diff --git a/plug b/plug
index dc2a0084b6d72f4d616e55f36afe946ba7747d3e..4af16b90565747cbec90244c9106d48d4b5f5f1d 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit dc2a0084b6d72f4d616e55f36afe946ba7747d3e
+Subproject commit 4af16b90565747cbec90244c9106d48d4b5f5f1d
index 07689b4e234c6de30bc26b4adb73b080f55f79ba..e618d20b3fd88c03071bee541e03607456e08ac5 100644 (file)
@@ -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);
 }