]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix array (somehow forgotten before) 222/head
authorfennecdjay <fennecdjay@gwion.tk>
Thu, 12 Nov 2020 01:29:09 +0000 (02:29 +0100)
committerfennecdjay <fennecdjay@gwion.tk>
Thu, 12 Nov 2020 01:29:09 +0000 (02:29 +0100)
src/lib/array.c

index 0020a0ae41706f021f8faa34d8f45d6df177aa08..8f378e5031a220ba1193fbbfbd3999445a896f69 100644 (file)
@@ -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;
 }