-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 Issue 21834 - std.numeric.gcd can't handle negative values #7974
Conversation
|
Thanks for your pull request, @ibuclaw! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7974" |
78398a8 to
af58e8c
Compare
|
Eh... you can't mix signed and unsigned types as parameters for |
98e4a58 to
56bdd28
Compare
|
please merge this when you're satisfied with it. |
If you're happy with the new signature... On reviewing this morning, I'd feel more sure if there was a mixed types test added to verify it is handled correctly. I'll have a small dig around the git history as well to add a few more comments, as why DigitalMars uses Euclid's algorithm is beyond me. |
|
@thewilsonator @berni44 - rebased on top of other PR refactoring/fixes and added more tests. |
This is a pretty lame restriction. Parameters should always be transformed to an unsigned value.