From: fennecdjay Date: Fri, 11 Oct 2019 14:27:34 +0000 (+0200) Subject: :art: Vararg coverage X-Git-Tag: nightly~2174 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=817af1d5f3ec8fc41bac336609c4a72d6afa9047;p=gwion.git :art: Vararg coverage --- diff --git a/src/lib/vararg.c b/src/lib/vararg.c index 250823ce..e6996c21 100644 --- a/src/lib/vararg.c +++ b/src/lib/vararg.c @@ -29,12 +29,8 @@ void free_vararg(MemPool p, struct Vararg_* arg) { INSTR(VarargTop) { struct Vararg_* arg = *(struct Vararg_**)MEM(instr->m_val); if(arg) { - if(arg->d) - PUSH_REG(shred, SZ_INT) - else { - shred->pc = instr->m_val2 + 1; - mp_free(shred->info->mp, Vararg, arg); - } + assert(arg->d); + PUSH_REG(shred, SZ_INT) } else shred->pc = instr->m_val2 + 1; }