-
-
Couldn't load subscription status.
- Fork 5.7k
Fix incorrect result for Base.invmod(<:Signed, <:Unsigned) #58010
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
Conversation
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.
Thanks! This is a good find and a good approach to fixing it!
Co-authored-by: Lilith Orion Hafner <[email protected]>
|
Apology for a flutter of changes and for just applying them in the first place, but I think it'd be a shame to let this slide down the pile further :-). I hope this is OK now |
…#58010) MWE of bug: ```julia julia> Int(invmod(1024, UInt(12289))) 5652 julia> invmod(1024, 12289) 12277 ``` --------- Co-authored-by: Max Horn <[email protected]> Co-authored-by: Lilith Orion Hafner <[email protected]>
MWE of bug: