]> Nishi Git Mirror - gwion.git/commitdiff
:art: Fix vm
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 23:50:15 +0000 (01:50 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 23:50:15 +0000 (01:50 +0200)
src/vm/vm.c

index b4ee9301372a67f88397205c585f234e5c206cfc..1322f6159d289f74fa3f280e6c98c4e1dbfaaabc 100644 (file)
@@ -311,7 +311,7 @@ ANN void vm_run(const VM* vm) { // lgtm [cpp/use-of-goto]
     &&newobj, &&addref, &&objassign, &&assign, &&remref,
     &&except, &&allocmemberaddr, &&dotmember, &&dotfloat, &&dotother, &&dotaddr,
     &&staticint, &&staticfloat, &&staticother,
-    &&dotfunc, &&dotstaticfunc, &&pushstaticcode
+    &&dotfunc, &&dotstaticfunc, &&pushstaticcode,
     &&gcini, &&gcadd, &&gcend,
     &&gack, &&gack3, &&regpushimm, &&other, &&eoc
   };
@@ -661,7 +661,7 @@ sporkexp:
 forkend:
   fork_launch(vm, a.child->info->me, VAL2);
 sporkend:
-  assert(!val); // spork are not mutable
+  assert(!VAL); // spork are not mutable
   *(M_Object*)(reg-SZ_INT) = a.child->info->me;
   DISPATCH()
 brancheqint: