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/29771] u != '\377' always true (u is unsigned char)



------- 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


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