From 19d491d848c761225704470b664c3ff8bc7bc4ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 24 May 2020 14:11:05 +0200 Subject: [PATCH] :bug: Fix VarargIni loop --- src/lib/vararg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/vararg.c b/src/lib/vararg.c index 74f6a567..0ff22289 100644 --- a/src/lib/vararg.c +++ b/src/lib/vararg.c @@ -70,7 +70,7 @@ INSTR(VarargIni) { vector_copy2(kinds, &arg->t); m_uint offset = 0; for(m_uint i = 0; i < vector_size(&arg->t); ++i) { - const Type t = (Type)vector_at(&arg->t, arg->i); + const Type t = (Type)vector_at(&arg->t, i); *(m_uint*)(arg->d + offset) = *(m_uint*)(shred->reg - SZ_INT + offset); if(isa(t, shred->info->vm->gwion->type[et_object]) > 0) { const M_Object obj = *(M_Object*)(arg->d + offset); -- 2.43.0