From 1e12aa530e4cc53c8a2b2fb0ae779f3c44520ca5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 30 Aug 2021 14:28:01 +0200 Subject: [PATCH] :bug: Small release hack --- src/vm/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index 31c23a39..4019d2b5 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -1071,7 +1071,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] DISPATCH() addref : { const M_Object o = *(M_Object *)(reg + IVAL); - // if(o) + if(o) ++o->ref; } DISPATCH() @@ -1088,7 +1088,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] DISPATCH() objassign : { const M_Object o = **(M_Object **)(reg - SZ_INT); - release(o, shred); +// release(o, shred); } assign: reg -= SZ_INT; -- 2.43.0