From 75fa720bd97dd3bf53ec39cd4082483f4d217a3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 14 Jun 2020 11:11:23 +0200 Subject: [PATCH] :bug: Fix interp_decl --- src/emit/emit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 8ee02546..e2441e26 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -508,10 +508,8 @@ ANN static void interp_multi(const Emitter emit, const Exp e) { Var_Decl_List list = e->d.exp_decl.list; const int emit_var = exp_getvar(e); m_uint offset = 0; - while(list->next) { + while((list = list->next)) offset += !emit_var ? list->self->value->type->size : SZ_INT; - list = list->next; - } if(offset) regpop(emit, offset); } -- 2.43.0