summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index a4bde78..e333870 100644
--- a/array.c
+++ b/array.c
@@ -217,7 +217,7 @@ simplifyarray(Array *a)
return fnSame(a); /* cannot be simplified */
}
- if(sametype){
+ if(sametype && type != AtypeArray){
Array *b = duparrayshape(a, type);
for(i = 0; i < a->size; i++){
if(nested){