[PATCH] Infinite loop/always true check possible with unsigned counter.

Paul Mackerras paulus at samba.org
Wed Jul 11 09:19:03 EST 2007


Manish Ahuja writes:

> I presume the patch is good then. Do I need to change anything ?

I guess not.  It will cause a warning on the first for loop if anyone
tries to compile with -Wextra or -Wsign-compare, but it would be only
one of lots of warnings in that case (and in fact comparing signed
with unsigned is a perfectly legitimate, well-defined thing to do; you
just have to be aware that the comparison is done as unsigned).

Paul.



More information about the Linuxppc-dev mailing list