]> Nishi Git Mirror - gwion.git/commitdiff
:Fix: Operator emit func->code
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Feb 2019 23:32:14 +0000 (00:32 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Feb 2019 23:32:19 +0000 (00:32 +0100)
src/parse/operator.c

index 2c2b7df32ea14e874d8a7511fc6d27cd21965fe6..fb59741d1dca5ad22c316231b04355d659b0b5ef 100644 (file)
@@ -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);