Qwery regarding the While() in gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Eljay Love-Jensen eljay@adobe.com
Wed Feb 25 18:22:00 GMT 2004


Hi Mario,

 >Shouldn't ((unsigned _whatever_) i > -1) ALWAYS be true, regardless of 
the size of _whatever_?

No.

What shouldn't be done by programmers -- even though it's allowed by the 
C++ ISO 14882 specification -- is comingling signed and unsigned data types 
in operations.  As a suggestion, in my opinion.

HTH,
--Eljay



More information about the Gcc-help mailing list