[Issue 18434] BigInt gcd asserts when one argument is zero.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 16 20:06:43 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18434

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/fb66d07b769111664d648b5d4eb0a96d8c3e3101
Fix issue 18434: gcd(BigInt(0), BigInt(1)) fails

The special cases of `gcd(0,a)` and `gcd(a,0)` are not handled correctly
when `BigInt`s are involved.

https://github.com/dlang/phobos/commit/ffc96fd90dceb753b5066ca09524caa5fb1f3ffa
Merge pull request #6170 from quickfur/issue18434

Fix issue 18434: gcd(BigInt(0), BigInt(1)) fails
merged-on-behalf-of: Jack Stouffer <jack at jackstouffer.com>

--


More information about the Digitalmars-d-bugs mailing list