]> Nishi Git Mirror - gwion.git/commitdiff
:art: Fix spork member
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 10 Jun 2020 19:32:46 +0000 (21:32 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Wed, 10 Jun 2020 19:32:46 +0000 (21:32 +0200)
src/emit/emit.c

index 76b753d89e391d1daa7e6e4eb5c0d733d49debe5..7982f68e8c43b1f5e373486cf5a2eb75f95897ca 100644 (file)
@@ -1164,7 +1164,7 @@ struct Sporker {
 ANN static m_bool spork_prepare_code(const Emitter emit, const struct Sporker *sp) {
   emit_add_instr(emit, RegPushImm);
   push_spork_code(emit, sp->is_spork ? SPORK_CODE_PREFIX : FORK_CODE_PREFIX, sp->code->pos);
-  if(!SAFE_FLAG(emit->env->func, member))
+  if(SAFE_FLAG(emit->env->func, member))
     stack_alloc_this(emit);
   return scoped_stmt(emit, sp->code, 0);
 }