From 37f317a52275d9e9cc1552cc1402666b53dffec4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 19 Sep 2021 17:09:44 +0200 Subject: [PATCH] :art: Fix VM warnings --- src/vm/vm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vm/vm.c b/src/vm/vm.c index 6dbc0bfa..45787982 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -1102,9 +1102,11 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] release(*(M_Object *)(mem + VAL), shred); DISPATCH() remref2: +{ struct Vector_ v = { .ptr = (m_uint*)VAL }; for(m_uint i = 0; i < vector_size(&v); i++) release(*(M_Object *)(mem + vector_at(&v, i)), shred); +} DISPATCH() except: /* TODO: Refactor except instruction * -- 2.43.0