-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Negative value is being left-shifted (undefined behavior) #7
Comments
Please check it again with GCC 10.3. Also, the last one is GCC 11.1 (as today). |
does 85d96d1 resolve this issue? |
Confirmed under GCC 10.3
|
UBSAN is still reporting the problem with
In this line: eg_inc = ((~slot->eg_rout) << shift) >> 4; The |
got rid of left shift in d9d6eea altogether |
Confirmed fixed. Tested:
Thank you @nukeykt! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flagged by GCC 10.2 when code is instrumented with UBSAN:
The text was updated successfully, but these errors were encountered: