]> Nishi Git Mirror - gwion.git/commitdiff
:art: check result of spid->em
authorfennecdjay <fennecdjay@gmail.com>
Thu, 8 Dec 2022 13:32:23 +0000 (14:32 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Thu, 8 Dec 2022 13:32:23 +0000 (14:32 +0100)
src/emit/emit.c

index bb2911a7976689ace4f2793992283c92c33e5af7..56b0c8e1bd7642b8e5c510eb04e7b87697b6da4a 100644 (file)
@@ -735,7 +735,7 @@ ANN static m_bool specialid_instr(const Emitter      emit,
                                         struct SpecialId_ *spid,
                                         const Exp_Primary *prim) {
   if(spid->exec) emit_add_instr(emit, spid->exec);
-  else if (spid->em) spid->em(emit, prim);
+  else if (spid->em) return spid->em(emit, prim);
   return GW_OK;
 }