[Issue 24083] Int128.opCmp's behavior with negative numbers is inconsistent with Int128.opEquals
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Aug 11 22:43:48 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24083
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@n8sh created dlang/phobos pull request #8798 "Fix Issue 24083 - Int128.opCmp's
behavior with negative numbers is inconsistent with Int128.opEquals" fixing
this issue:
- Fix Issue 24083 - Int128.opCmp's behavior with negative numbers is
inconsistent with Int128.opEquals
  Needed to make opCmp a template to avoid causing
  `Int128(-1L) < ulong.max` to return the wrong value or causing the
  compiler to complain that it can't determine which overload to call for
  `Int128(1) > 10`.
https://github.com/dlang/phobos/pull/8798
--
    
    
More information about the Digitalmars-d-bugs
mailing list