From: Jérémie Astor Date: Wed, 6 Apr 2022 17:09:24 +0000 (+0200) Subject: :bug: Fix array concat X-Git-Tag: nightly~330 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a21598ec232eae5b6bed336540c62f8e16e49a0e;p=gwion.git :bug: Fix array concat --- diff --git a/src/lib/array.c b/src/lib/array.c index d0a4552f..bed713ec 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -187,7 +187,7 @@ static INSTR(ArrayConcatLeft) { base->ptr = ptr; } m_bit *data = more->ptr + ARRAY_OFFSET; - memmove(ARRAY_PTR(base) + (len - 1) * sz, data, sz); + memmove(ARRAY_PTR(base) + len * sz, data, sz); } static INSTR(ArrayConcatRight) {