From d37335e787c37660edc3e4eebd00ed2b0606fedc Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 15 Feb 2019 00:32:14 +0100 Subject: [PATCH] :Fix: Operator emit func->code --- 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 2c2b7df3..fb59741d 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -173,7 +173,7 @@ ANN m_bool operator_set_func(const struct Op_Import* opi) { ANN static m_bool handle_instr(const Emitter emit, const M_Operator* mo) { if(mo->func) { const Instr instr = emit_add_instr(emit, RegPushImm); - instr->m_val = (m_uint)mo->func; + instr->m_val = (m_uint)mo->func->code; return emit_exp_call1(emit, mo->func); } emit_add_instr(emit, mo->instr); -- 2.43.0