fixed a corruption bug where idxtags were not properly set

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40540
This commit is contained in:
David Anderson 2007-02-26 07:44:08 +00:00
parent 8d412faf5c
commit fd32916b6e

View File

@ -2257,7 +2257,9 @@ static int declloc(int fstatic)
pushreg(sPRI);
}
if (matchtoken(']')) {
dim[numdim++] = 0;
idxtag[numdim] = 0;
dim[numdim] = 0;
numdim++;
continue;
}
dim_ident = doexpr2(TRUE,FALSE,FALSE,FALSE,&idxtag[numdim],&dim_sym,0,&dim_val);