From: Jérémie Astor Date: Sun, 24 May 2020 12:11:05 +0000 (+0200) Subject: :bug: Fix VarargIni loop X-Git-Tag: nightly~1526 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=19d491d848c761225704470b664c3ff8bc7bc4ce;p=gwion.git :bug: Fix VarargIni loop --- 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);