size_t index=-1;
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 19 03:01:41 PDT 2016
On Saturday, 19 March 2016 at 09:33:25 UTC, tsbockman wrote:
> [...] The reason that *attempting* such a comparison produces
> such weird results, is because the signed value is being
> implicitly cast to an unsigned type.
Yes and that's the opposite that should happend: when signed and
unsigned are mixed in a comparison, the unsigned value should be
implictly cast to a wider signed value. And then it works!
- https://issues.dlang.org/show_bug.cgi?id=15805
-
https://github.com/BBasile/iz/blob/v0.5.8/import/iz/sugar.d#L1017
More information about the Digitalmars-d-learn
mailing list