From: fennecdjay Date: Wed, 9 Oct 2019 23:35:09 +0000 (+0200) Subject: :art: Improve vm X-Git-Tag: nightly~2198^2~36 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d58bc24edff664fe3fcd2ff1ce3610ebda893c2a;p=gwion.git :art: Improve vm --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 9986b055..b4ee9301 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -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;