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

index 9986b0559b8dcae9f4529e924c4cb7b84a303e25..b4ee9301372a67f88397205c585f234e5c206cfc 100644 (file)
@@ -661,10 +661,8 @@ sporkexp:
 forkend:
   fork_launch(vm, a.child->info->me, VAL2);
 sporkend:
-  if(!VAL)
-    *(M_Object*)(reg-SZ_INT) = a.child->info->me;
-  else
-    *(M_Object**)(reg-SZ_INT) = &a.child->info->me;
+  assert(!val); // spork are not mutable
+  *(M_Object*)(reg-SZ_INT) = a.child->info->me;
   DISPATCH()
 brancheqint:
   reg -= SZ_INT;