From: Jérémie Astor Date: Wed, 3 Jun 2020 13:03:59 +0000 (+0200) Subject: :art: Improve array X-Git-Tag: nightly~1493 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9dff439d162dcf1b1236d532671de5be2e544bd0;p=gwion.git :art: Improve array --- 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; }