[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Casting ctype lookups
On Mon 12 Nov 2012 at 16:41:40 -0500, D'Arcy J.M. Cain wrote:
> I did a test that suggests that it is any array index that uses char.
I'm pretty sure that the warning is there because 'char' may be
equivalent to either 'signed char' or 'unsigned char', but you don't
know which of the two. Therefore you may unwittingly use a negative
index into the array. Even if on the compiler you happen to use chars
are unsigned, and that doesn't happen for you, it may happen to somebody
else who compiles the same source.
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
Main Index |
Thread Index |