-
Notifications
You must be signed in to change notification settings - Fork 78
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
"For logical right shifts operands must have at ..." #250
Comments
Hmm, see https://lists.w3.org/Archives/Public/www-international/2014JulSep/0027.html and replies. That might have been wrong though. |
I actually misread that sentence as talking about the result of right shifts, rather than to the operands, which is why I thought it must be referring to left shifts. But although that message is indeed right in that bit shifts do depend on the size of the input, that only makes a difference for logical right shifts of negative numbers:
And since the only right shifts in the standard have code points or code units as their input, they must be positive. |
Okay, I would be fine dropping that sentence. I've been kinda hoping we can remove the majority of that section once whatwg/infra#87 is sorted. |
Closing this in the meantime, then. |
Shouldn't this be for left shifts? After all, the result of a logical right shift will never have more bits than the larger of its operands.
The text was updated successfully, but these errors were encountered: