From: Jérémie Astor Date: Sun, 14 Jun 2020 09:11:23 +0000 (+0200) Subject: :bug: Fix interp_decl X-Git-Tag: nightly~1478 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=75fa720bd97dd3bf53ec39cd4082483f4d217a3c;p=gwion.git :bug: Fix interp_decl --- 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); }