From: fennecdjay Date: Sat, 26 Oct 2019 19:17:52 +0000 (+0200) Subject: :art: improve tuple info X-Git-Tag: nightly~2116^2~23 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=94ec66d1abeda9d7b7085ee56ed6ca497c63f6db;p=gwion.git :art: improve tuple info --- diff --git a/src/lib/tuple.c b/src/lib/tuple.c index fe363b2e..e0a6eae7 100644 --- a/src/lib/tuple.c +++ b/src/lib/tuple.c @@ -236,12 +236,8 @@ ANN void tuple_info(const Env env, Type_Decl *base, const Var_Decl var) { vector_add(&env->class_def->e->tuple->types, (vtype)v->type); vector_add(&env->class_def->e->tuple->offset, offset + v->type->size); Type_Decl *td = cpy_type_decl(env->gwion->mp, base); - if(var->array) { - if(td->array) - td->array->depth += var->array->depth; - else - td->array = cpy_array_sub(env->gwion->mp, var->array); - } + if(var->array) + td->array = cpy_array_sub(env->gwion->mp, var->array); if(env->class_def->e->tuple->list) { Type_List tl = env->class_def->e->tuple->list; while(tl->next)