From 94ec66d1abeda9d7b7085ee56ed6ca497c63f6db Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 26 Oct 2019 21:17:52 +0200 Subject: [PATCH] :art: improve tuple info --- src/lib/tuple.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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) -- 2.43.0