From 9dff439d162dcf1b1236d532671de5be2e544bd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 3 Jun 2020 15:03:59 +0200 Subject: [PATCH] :art: Improve array --- 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 73679ef8..ee5b6cc3 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -223,7 +223,7 @@ static INSTR(ArraySlice) { for(m_int i = start, j = 0; i != end; i += op, ++j) { m_bit buf[ARRAY_SIZE(in)]; m_vector_get(in, i, &buf); - m_vector_set(ARRAY(out), i, buf); + m_vector_set(ARRAY(out), j, buf); } *(M_Object*)REG(-SZ_INT) = out; } -- 2.43.0