Bug 9548 – BigInt: Wrong comparison result: BigInt("-1") > long.min

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-19T20:54:00Z
Last change time
2015-06-09T05:15:09Z
Assigned to
nobody
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2013-02-19T20:54:40Z
This fails: assert(BigInt("-1") > long.min);
Comment #1 by bus_dbugzilla — 2013-02-19T20:55:56Z
Workaround: assert(BigInt("-1") > BigInt(long.min)); // Works
Comment #2 by safety0ff.bugz — 2013-03-31T04:09:40Z
Comment #3 by github-bugzilla — 2013-05-25T23:36:36Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/202d182152575db1d744ed5ee89b05a39e5a807b Fix std.BigInt bug #9548 plus other new discovered bugs. https://github.com/D-Programming-Language/phobos/commit/e54288b6b78a025ecaf19730e613bfa0d58b746d Merge pull request #1231 from Safety0ff/master Fix std.BigInt bug #9548 plus other new discovered bugs.