From 0f54f0cb88ca004351f65fd6cd8711c90250480a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 5 Sep 2021 22:51:11 +0200 Subject: [PATCH] :art: Improve Array:[T].map --- src/lib/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/array.c b/src/lib/array.c index f1cd6fe4..f785b309 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -446,7 +446,7 @@ static INSTR(map_run_ini) { FunctionalFrame *frame = &*(FunctionalFrame *)MEM(SZ_INT * 3); shred->pc++; shred->mem += MAP_CODE_OFFSET + SZ_INT; // work in a safe memory space - m_vector_get(array, frame->index, &*(m_bit **)(shred->mem + SZ_INT * 3 + frame->code->stack_depth)); + m_vector_get(array, frame->index, &*(m_bit **)(shred->mem + SZ_INT * 2 + frame->offset + frame->code->stack_depth)); } static INSTR(map_run_end) { -- 2.43.0