From 8c7e1ad4c5815606e33067e4d43e3c0a4893be57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 5 Sep 2021 22:58:35 +0200 Subject: [PATCH] :art: Improve ANY >> Array:[T] --- 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 f785b309..d628ae6a 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -209,7 +209,7 @@ static OP_EMIT(opem_array_sr) { const Instr pop = emit_add_instr(emit, RegMove); pop->m_val = -SZ_INT; if (isa(bin->lhs->type, emit->gwion->type[et_compound]) > 0) - emit_compound_addref(emit, bin->lhs->type, -SZ_INT, false); + emit_compound_addref(emit, bin->lhs->type, -SZ_INT*2, false); (void)emit_add_instr(emit, ArrayAppendFront); return GW_OK; } -- 2.43.0