Merge pull request #2 from devLotto/chinese-chars

Output ints instead of chars for numbers in array sizes
This commit is contained in:
Adam
2018-04-05 08:55:22 -04:00
committed by GitHub

View File

@@ -362,7 +362,13 @@ public class NewExprent extends Exprent {
for (int i = 0; i < newType.arrayDim; i++) { for (int i = 0; i < newType.arrayDim; i++) {
buf.append("["); buf.append("[");
if (i < lstDims.size()) { if (i < lstDims.size()) {
buf.append(lstDims.get(i).toJava(indent, tracer)); Exprent dim = lstDims.get(i);
if (dim.type == Exprent.EXPRENT_CONST) {
((ConstExprent) dim).setConstType(VarType.VARTYPE_INT);
}
buf.append(dim.toJava(indent, tracer));
} }
buf.append("]"); buf.append("]");
} }