August 11, 2023 [Issue 24083] New: Int128.opCmp's behavior with negative numbers is inconsistent with Int128.opEquals | ||||
---|---|---|---|---|
| ||||
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 !!! } --- -- |
Copyright © 1999-2021 by the D Language Foundation