This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: constant signed/unsigned comparison warning
- To: egcs at cygnus dot com, gcc2 at cygnus dot com
- Subject: Re: constant signed/unsigned comparison warning
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Fri, 26 Sep 1997 08:06:45 -0400
"Matthias Urlichs" <smurf@noris.de> said:
[...]
> the comparison. You don't see a warning when you compare an integer, be it
> signed or unsigned, with the constant 100...
100 is int, sizeof() is unsigned...
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513