[Issue 13073] Wrong uint array comparison

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 11 17:02:13 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13073

--- Comment #3 from hsteoh at quickfur.ath.cx ---
Comparison of int[] is also wrong; it uses subtraction, which is OK in terms of
sign handling, but wrong because of possibility of overflow (e.g., int.max -
int.min overflows and doesn't return a positive result).

--


More information about the Digitalmars-d-bugs mailing list