-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect the sign of the right operand of AST_SHIFT and AST_SHIFTX #4065
Conversation
The $shift and $shiftx cells perform a left logical shift if the second operand is negative. This change passes the sign of the second operand of AST_SHIFT and AST_SHIFTX into $shift and $shiftx cells, respectively.
As I understand this change it's not so much that the second operand to |
Thanks for merging! Before this change, the second operand was converted to unsigned before being passed to the |
Well, that depends on the operand, doesn't it? |
I don't think that's correct. As far as I understand, the previous call to |
Reading more into the code, I think you are right. At least not even |
Yes, that's what I suspect is happening for the current use of |
The $shift and $shiftx cells perform a left logical shift if the second operand is negative. This change passes the sign of the second operand of AST_SHIFT and AST_SHIFTX into $shift and $shiftx cells, respectively.