digitalmars.D.bugs - [Issue 24083] New: Int128.opCmp's behavior with negative numbers is
- d-bugmail puremagic.com (24/24) Aug 11 2023 https://issues.dlang.org/show_bug.cgi?id=24083
https://issues.dlang.org/show_bug.cgi?id=24083 Issue ID: 24083 Summary: Int128.opCmp's behavior with negative numbers is inconsistent with Int128.opEquals Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: n8sh.secondary hotmail.com --- void main() { import std.stdio; import std.int128; writeln(Int128(-1L) == -1L); // writes true writeln(Int128(-1L) < -1L); // also writes true !!! } --- --
Aug 11 2023