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: [email protected]
Reporter: [email protected]
---
void main()
{
import std.stdio;
import std.int128;
writeln(Int128(-1L) == -1L); // writes true
writeln(Int128(-1L) < -1L); // also writes true !!!
}
---
--
