signed vs unsigned comparison warnings

Joern Rennecke amylaar@cygnus.co.uk
Tue Jun 20 13:15:00 GMT 2000


> In my experience, using unsigned in C is almost always a mistake.
> The way conversion works, it does create all sorts of nasty problems
> that don't exist with signed arithmetic, and the extra bit of precision
> is VERY rarely useful.

Using unsigned instead of signed division by a constant power of two can
make a significant difference in code size and speed.


More information about the Gcc mailing list