-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix #15489, don't check conversions during mixed signedness arithmetic #23827
Conversation
base/int.jl
Outdated
T = promote_typeof(a, b) | ||
return $op(a % T, b % T) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't these definitions work for Integer
as well? Would collapse all of these definitions.
The basic observation here is that |
That's right. But I was worried about integer types that might implement |
The argument works for |
b5c3c7c
to
3ed3f43
Compare
Beautiful! 👏 |
Failure on 64-bit AV might be a variation of #23371? |
I don't think these failures are related, but I really wish we could get a clean CI run here. |
929768d
to
ef461cb
Compare
ef461cb
to
65cf01d
Compare
also skip checks for integer bitwise ops
65cf01d
to
8dd77bd
Compare
Ah, this feels very nice. I'm very pleased with how this turned out. |
also skip checks for integer bitwise ops