This is the mail archive of the gcc-bugs@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]

[Bug c++/26729] bogus 'comparison is always 0' message



------- Comment #8 from falk at debian dot org  2006-03-28 20:58 -------
Huh? The code does

  ((UInt16(word) & 0x3700) == (UInt16(0x3000) & UInt16(word & 0x8800))) ==
UInt16(0x8000);

which is of course always 0, the left part of the comparison is a comparison,
which can be only 0 or 1, and the right part is 0x8000. So never equal.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26729


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