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/14259] comparison is always true due to limited range of data type


------- Additional Comments From hans dot buchmann at fhso dot ch  2004-02-23 14:32 -------
(In reply to comment #1)
> The warning seems correct to me, since char is unsigned on arm.
even if char is unsigned 
foo('\n') should return 0 and foo('A') should return 1

-- 


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


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