Re: Compiler warning: comparison between signed and unsigned

Aron Griffis <[email protected]>
Newsgroups gmane.linux.gentoo.alpha
Message-ID <20030819010955.GA25512@time>
Per Krogh Nielsen wrote:	[Mon Aug 18 2003, 02:58:59AM EDT]
> (From MRTG)
> src/rateup.c: In function `image':
> src/rateup.c:369: warning: comparison between signed and unsigned

This sort of thing is generally insignificant.  There are two ways to
correct the warning:

    1. Fix the variables so that they're all the same sign.  Sometimes
       this is not an easy thing to do.

    2. Mask the warning by casting the variables to a common sign.

It's really not worth worrying about, though.  Generally if it's a real
problem, it will crop up as a bug eventually, and they'll fix it
upstream.

Aron
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/QXjjDxcWWTdf66ERAusiAKCp1yofo45MIk6SboXeyvJglYeEkQCcDr51
F8T4qkWNrFO2TvPWsr1IO+k=
=W44t
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.