Re: warning: comparison between signed and unsigned integer expressions

Markus Hitter <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Am 23.04.2010 um 15:11 schrieb Paul Sargent:

> int a;
> unsigned int b;
>
> a = -1;
> b = (int) a;

Didn't you mean

b = (unsigned int) a;  ?

Casting an int to an int is somewhat obsolete.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
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.