From 67361083cfb93de296a4f045c37166a7038a6b76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 22 Dec 2020 01:25:16 +0100 Subject: [PATCH] :art: Operator improvement --- src/parse/operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0