From 817af1d5f3ec8fc41bac336609c4a72d6afa9047 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 16:27:34 +0200 Subject: [PATCH] :art: Vararg coverage --- src/lib/vararg.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } -- 2.43.0