This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: problem with safe-ctype.h
- To: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Subject: Re: problem with safe-ctype.h
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 16 Dec 2000 10:52:01 +0000
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-patches at gcc dot gnu dot org
- References: <200012151810.NAA17225@caip.rutgers.edu> <200012152153.VAA24323@net.HCC.nl>
Herman ten Brugge wrote:-
> I still don't understand. Sorry. What is the difference between:
> '(int)(unsigned char)(c)' and '(c) & 0xff'
> The following program does not abort:
That may be a well-known bug in GCC regarding signed chars and shorts.
Have you tried your program on other compilers?
Neil.