This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29771] u != '\377' always true (u is unsigned char)
- From: "r dot c dot ladan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2006 23:52:03 -0000
- Subject: [Bug c/29771] u != '\377' always true (u is unsigned char)
- References: <bug-29771-13538@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from r dot c dot ladan at gmail dot com 2006-11-08 23:52 -------
(In reply to comment #1)
> '\377' in C is of type int.
>
Ok, the comparison works with (u != 0xff), thus without the quotes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29771