fix: LXorCommand may be truncated

This commit is contained in:
zhangxun 2025-06-12 17:39:04 +08:00
parent c80958b34d
commit 5ab850f354

View File

@ -48,8 +48,8 @@ public class LXorCommand implements Command {
} }
// Pop the top two operands from the stack // Pop the top two operands from the stack
final int b = (int) operandStack.pop(); final long b = (long) operandStack.pop();
final int a = (int) operandStack.pop(); final long a = (long) operandStack.pop();
// Perform the long64 bitwise XOR operation and push the result back onto the stack // Perform the long64 bitwise XOR operation and push the result back onto the stack
operandStack.push(a ^ b); operandStack.push(a ^ b);