]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Same for func_def
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 26 May 2020 17:53:25 +0000 (19:53 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 26 May 2020 17:53:25 +0000 (19:53 +0200)
src/emit/emit.c

index 2c6a0e843b0bc19af53848732f9157421de41721..db22c5194be7ae8fd9b493bb72eb54bba94ce47c 100644 (file)
@@ -1980,6 +1980,8 @@ ANN static m_bool emit_func_def(const Emitter emit, const Func_Def f) {
   emit->env->func = former;
   if(ret > 0)
     emit_fdef_finish(emit, fdef);
+  else
+    emit_pop_code(emit);
   return ret;
 }