]> Nishi Git Mirror - gwion.git/commitdiff
:art: Clean instructions
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 16 May 2019 13:08:57 +0000 (15:08 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 16 May 2019 13:08:57 +0000 (15:08 +0200)
src/lib/instr.c

index a2eb11a965e769897c5e5f4eb67a6ad27f5c8996..034d5ab59512d6539685f28e7fdc6db0a23d7364 100644 (file)
 #include "array.h"
 #include "nspc.h"
 #include "shreduler_private.h"
-/*
-INSTR(EOC) {
-  vm_shred_exit(shred);
-}
-*/
+
 INSTR(DTOR_EOC) {
   const M_Object o = *(M_Object*)MEM(0);
   o->type_ref = o->type_ref->e->parent;
@@ -106,7 +102,7 @@ INSTR(DotTmpl) {
       dt->def = def; //
       dt->owner = t; //
       if(traverse_dot_tmpl(emit, dt) > 0) {
-        if(GET_FLAG(f->def, static))
+        if(GET_FLAG(def, static))
           shred->reg -= SZ_INT;
         *(VM_Code*)shred->reg = def->base->func->code;
         shred->reg += SZ_INT;