]> Nishi Git Mirror - gwion.git/commitdiff
:art: Fix VM warnings
authorJérémie Astor <fennecdjay@gmail.com>
Sun, 19 Sep 2021 15:09:44 +0000 (17:09 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sun, 19 Sep 2021 15:09:44 +0000 (17:09 +0200)
src/vm/vm.c

index 6dbc0bfa15e5b490ffe69b8656f6b5a4099891e5..457879829def1040dfb9f55d7d1737304dd734a1 100644 (file)
@@ -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             *