This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Qwery regarding the While() in gcc (GCC) 3.2.2 20030222 (Red HatLinux 3.2.2-5)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]