From: fennecdjay Date: Thu, 12 Nov 2020 01:29:09 +0000 (+0100) Subject: :bug: Fix array (somehow forgotten before) X-Git-Tag: nightly~1163 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=refs%2Fpull%2F222%2Fhead;p=gwion.git :bug: Fix array (somehow forgotten before) --- diff --git a/src/lib/array.c b/src/lib/array.c index 0020a0ae..8f378e50 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -138,7 +138,7 @@ static MFUN(vm_vector_cap) { } ANN static Type get_array_type(Type t) { - while(t->info->base_type) + while(t->array_depth && t->info->base_type) t = t->info->base_type; return t; }