From 9036614bcbee04ed3f44601fc5f0a57b765f3ea9 Mon Sep 17 00:00:00 2001 From: Zeex Date: Tue, 7 Apr 2015 22:12:38 +0600 Subject: [PATCH] Fix broken 2d ellipsis after another array fix Some tests would really help I guess... See commit 7314b56. --- source/compiler/sc1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index fb91b0c..89931d4 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -2538,6 +2538,7 @@ static cell initarray(int ident,int tag,int dim[],int numdim,int cur, } /* for */ append_constval(lastdim,itoh(idx),dsize,0); } /* for */ + idx--; } else error(41); /* invalid ellipsis, array size unknown */ } else {