!8 fix: LXorCommand may be truncated

Merge pull request !8 from zhangxun/bugfix/fix-LXorCommand-may-be-truncated
This commit is contained in:
Luke 2025-06-12 12:10:44 +00:00 committed by Gitee
commit cd21a1169c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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