https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62243
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- i <= w if I and w are int then the compare is done in int but if w is unsigned int, then it is done in unsigned int so (unsigned int)-3 is always greater than 3.