This is the mail archive of the gcc-patches@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]

Re: problem with safe-ctype.h


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.

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