From aff09efef1759c50048219dd47bb7a85bc993936 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 10 Jun 2020 21:32:46 +0200 Subject: [PATCH] :art: Fix spork member --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0