From: Michael Wallner Date: Tue, 17 Oct 2017 08:48:48 +0000 (+0200) Subject: fix size of arrays X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ad2c22df5e451fffecc7b7ebdc9c5a4bb36e543e;p=m6w6%2Fext-psi fix size of arrays --- diff --git a/src/types/decl_arg.c b/src/types/decl_arg.c index e62edf0..b4acdb1 100644 --- a/src/types/decl_arg.c +++ b/src/types/decl_arg.c @@ -181,7 +181,7 @@ size_t psi_decl_arg_get_size(struct psi_decl_arg *darg) if (darg->var->array_size && darg->var->pointer_level > 1) { size = psi_t_size(PSI_T_POINTER) * darg->var->array_size; - } else if (darg->var->pointer_level) { + } else if (!darg->var->array_size && darg->var->pointer_level) { size = psi_t_size(PSI_T_POINTER); } else { switch (real->type) {