From 5110db1d46bd63ea91f12fd7c7fecb8aa1f503f2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 8 Jan 2023 14:35:03 +0100 Subject: [PATCH] :bug: Fix structrelease instructions --- src/vm/vm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index 0df19eff..4433b413 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -912,11 +912,6 @@ vm_prepare(const VM *vm, m_bit *prepare_code) { // lgtm [cpp/use-of-goto] DISPATCH(); setcode: a.code = *(VM_Code *)(reg - SZ_INT); -if(a.code->wait) { -handle(shred, "FuncWithGlobalUninit"); -break; -} - if (!a.code->builtin) { register const uint push = *(m_uint *)reg /*+ code->stack_depth*/ + sizeof(frame_t); @@ -1093,8 +1088,10 @@ break; DISPATCH() structreleaseregaddr: struct_release(shred, (Type)VAL2, *(m_bit**)(reg + IVAL)); + DISPATCH(); structreleasemem: struct_release(shred, (Type)VAL2, mem + IVAL); + DISPATCH(); except: /* TODO: Refactor except instruction * * so that * -- 2.43.0