From a21598ec232eae5b6bed336540c62f8e16e49a0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 6 Apr 2022 19:09:24 +0200 Subject: [PATCH] :bug: Fix array concat --- 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 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) { -- 2.43.0