Made PushShortIns.execute properly handle short integer overflow

This commit is contained in:
Stanislav Izmalkov
2014-12-03 16:21:44 +03:00
parent 689ec29448
commit 4addbe1c4d

View File

@@ -38,7 +38,7 @@ public class PushShortIns extends InstructionDefinition implements PushIntegerTy
@Override
public void execute(LocalDataArea lda, AVM2ConstantPool constants, List<Object> arguments) {
lda.operandStack.push(arguments.get(0));
lda.operandStack.push((long) ((Number) arguments.get(0)).shortValue());
}
@Override