Merge pull request #2 from devLotto/chinese-chars
Output ints instead of chars for numbers in array sizes
This commit is contained in:
@@ -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("]");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user