From 43035a3886ffd2ab2883ca7500434c91c5d235ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 14 Sep 2020 13:06:28 +0200 Subject: [PATCH] :art: Update vm --- src/vm/vm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index cab5a91c..ddecb99e 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -691,7 +691,9 @@ sporkexp: DISPATCH() sporkend: assert(!VAL); // spork are not mutable +PRAGMA_PUSH() *(M_Object*)(reg-SZ_INT) = child->info->me; +PRAGMA_POP() DISPATCH() brancheqint: reg -= SZ_INT; @@ -724,9 +726,9 @@ arraytop: else goto _goto; arrayaccess: + a.obj = *(M_Object*)(reg-VAL2); { register const m_int idx = *(m_int*)(reg + VAL); - a.obj = *(M_Object*)(reg-VAL2); if(idx < 0 || (m_uint)idx >= m_vector_size(ARRAY(a.obj))) { gw_err(_(" ... at index [%" INT_F "]\n"), idx); gw_err(_(" ... at dimension [%" INT_F "]\n"), VAL); -- 2.43.0