← Back to index
|
Original Bugzilla link
Bug 8022 – BigInt division bug (2)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-05-03T01:20:00Z
Last change time
2012-07-03T04:49:22Z
Assigned to
nobody
Creator
yuri.musashi.miwa.tamura
Comments
Comment #0
by yuri.musashi.miwa.tamura — 2012-05-03T01:20:17Z
(in dmd 2.059) import std.stdio, std.bigint; void main() { BigInt n = BigInt(2) / BigInt(-3); writeln(n); writeln(n == 0); } output: -0 false I think correct output is 0 and true.
Comment #1
by github-bugzilla — 2012-07-01T19:49:40Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/261889c656c66177843c936643ae1478cb75b520
Fix issue 8022 BigInt division bug (2)
https://github.com/D-Programming-Language/phobos/commit/94cece63b5c2163420ee89e733bbb0b0160bb573
Merge pull request #629 from donc/bigint8022div Fix issue 8022 BigInt division bug (2)