From: Jérémie Astor Date: Wed, 10 Jun 2020 19:32:46 +0000 (+0200) Subject: :art: Fix spork member X-Git-Tag: nightly~1484 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=aff09efef1759c50048219dd47bb7a85bc993936;p=gwion.git :art: Fix spork member --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 76b753d8..7982f68e 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -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); }