[Bug c/14259] comparison is always true due to limited range of data type

hans dot buchmann at fhso dot ch gcc-bugzilla@gcc.gnu.org
Mon Feb 23 14:33:00 GMT 2004


------- Additional Comments From hans dot buchmann at fhso dot ch  2004-02-23 14:33 -------
(In reply to comment #2)
> (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

sorry: of course vice versa

-- 


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



More information about the Gcc-bugs mailing list