Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/games



In article <20140323125252.GX20347%snowdrop.l8s.co.uk@localhost>,
David Laight  <david%l8s.co.uk@localhost> wrote:
>
>For instance with:
>       for (int i = 0; i < sizeof foo; i++)
>it can't matter that the comparison is unsigned because 'i' can be
>assumed to be non-negative (even if 'sizeof foo' is greater than MAXINT).

But then you end up doing something with i, that is done in signed
context, while it would have been better done as unsinged.

christos



Home | Main Index | Thread Index | Old Index