From e39eaa1648b6066a868f0fbd64d1c7c1d861b783 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 12 Nov 2020 02:29:09 +0100 Subject: [PATCH] :bug: Fix array (somehow forgotten before) --- src/lib/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0