Re: Qwery regarding the While() in gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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 of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]