2 Commits
Author SHA1 Message Date
SuspiciousActivity ad975e67db Merge pull request #2 from EvilCodeZ/master
Fixed POP2 instruction in StackBasedCalculator.
2021-09-05 15:51:11 +02:00
EvilCodeZ 4beaab1283 Fixed POP2 instruction in StackBasedCalculator. 2021-09-05 15:02:55 +02:00
@@ -580,8 +580,10 @@ public class StackBasedCalculator implements Opcodes, Runnable {
change(node);
return false;
case POP2:
stack.pop();
stack.pop();
Number val = stack.pop();
if(!(val instanceof Long) && !(val instanceof Double)) {
stack.pop();
}
change(node);
return false;
case SWAP: {