mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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) {
|
||||
stmt.setExceptionType(symbolTable.at(exceptionTypeIndex));
|
||||
}
|
||||
int exceptionVarIndex = input.readInt();
|
||||
int exceptionVarIndex = input.readShort();
|
||||
if (exceptionVarIndex >= 0) {
|
||||
stmt.setExceptionVariable(exceptionVarIndex);
|
||||
}
|
||||
|
|
|
@ -761,6 +761,10 @@ public class ProgramIO {
|
|||
ConstructMultiArrayInstruction insn = new ConstructMultiArrayInstruction();
|
||||
insn.setReceiver(program.variableAt(input.readShort()));
|
||||
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;
|
||||
}
|
||||
case 24: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user