From: Jérémie Astor Date: Tue, 22 Dec 2020 00:25:16 +0000 (+0100) Subject: :art: Operator improvement X-Git-Tag: nightly~1079 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=67361083cfb93de296a4f045c37166a7038a6b76;p=gwion.git :art: Operator improvement --- diff --git a/src/parse/operator.c b/src/parse/operator.c index 2a7133a0..670847b6 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -203,7 +203,7 @@ ANN static m_bool handle_instr(const Emitter emit, const M_Operator* mo) { ANN m_bool op_emit(const Emitter emit, const struct Op_Import* opi) { for(int i = 0; i < 2; ++i) { - Nspc nspc = emit->env->class_def ? emit->env->curr : emit->env->context->nspc; + Nspc nspc = emit->env->curr; do { if(!nspc->info->op_map.ptr)continue; Type l = opi->lhs;