mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-10 08:54:11 -08:00
Fix bugs in ProgramIO and AstIO
This commit is contained in:
parent
fb424e6741
commit
e28771ad48
|
@ -642,7 +642,7 @@ public class AstIO {
|
||||||
if (exceptionTypeIndex >= 0) {
|
if (exceptionTypeIndex >= 0) {
|
||||||
stmt.setExceptionType(symbolTable.at(exceptionTypeIndex));
|
stmt.setExceptionType(symbolTable.at(exceptionTypeIndex));
|
||||||
}
|
}
|
||||||
int exceptionVarIndex = input.readInt();
|
int exceptionVarIndex = input.readShort();
|
||||||
if (exceptionVarIndex >= 0) {
|
if (exceptionVarIndex >= 0) {
|
||||||
stmt.setExceptionVariable(exceptionVarIndex);
|
stmt.setExceptionVariable(exceptionVarIndex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -761,6 +761,10 @@ public class ProgramIO {
|
||||||
ConstructMultiArrayInstruction insn = new ConstructMultiArrayInstruction();
|
ConstructMultiArrayInstruction insn = new ConstructMultiArrayInstruction();
|
||||||
insn.setReceiver(program.variableAt(input.readShort()));
|
insn.setReceiver(program.variableAt(input.readShort()));
|
||||||
insn.setItemType(ValueType.parse(symbolTable.at(input.readInt())));
|
insn.setItemType(ValueType.parse(symbolTable.at(input.readInt())));
|
||||||
|
int dimensionCount = input.readByte();
|
||||||
|
for (int i = 0; i < dimensionCount; ++i) {
|
||||||
|
insn.getDimensions().add(program.variableAt(input.readShort()));
|
||||||
|
}
|
||||||
return insn;
|
return insn;
|
||||||
}
|
}
|
||||||
case 24: {
|
case 24: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user