Output ints instead of chars for numbers in array sizes

This commit is contained in:
UniquePassive
2017-11-01 22:10:02 +01:00
parent 548ec54346
commit 9c9f936896

View File

@@ -362,7 +362,13 @@ public class NewExprent extends Exprent {
for (int i = 0; i < newType.arrayDim; i++) {
buf.append("[");
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("]");
}