mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fixed POP2 instruction in StackBasedCalculator.
This commit is contained in:
1 parent
cfa278cd3b
commit
4beaab1283
1 file changed
+3
-1
@@ -580,8 +580,10 @@ public class StackBasedCalculator implements Opcodes, Runnable {
|
|||||||
change(node);
|
change(node);
|
||||||
return false;
|
return false;
|
||||||
case POP2:
|
case POP2:
|
||||||
|
Number val = stack.pop();
|
||||||
|
if(!(val instanceof Long) && !(val instanceof Double)) {
|
||||||
stack.pop();
|
stack.pop();
|
||||||
stack.pop();
|
}
|
||||||
change(node);
|
change(node);
|
||||||
return false;
|
return false;
|
||||||
case SWAP: {
|
case SWAP: {
|
||||||
|
|||||||
Reference in new issue
Block a user