From d58bc24edff664fe3fcd2ff1ce3610ebda893c2a Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 01:35:09 +0200 Subject: [PATCH] :art: Improve vm --- src/vm/vm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.43.0