Mail Archives: djgpp/1997/10/29/09:24:08
On Wed, 29 Oct 1997, Peter Palotas wrote:
> >I think you are missing the fact that '\xFD' is NOT a character constant,
> >it's an int. Therefore, -funsigned-char doesn't affect it.
>
> Howcome '\xFD' isn't a character constant? Doesn't something inside single
> quotes (') mean that it is a character constant?
Sorry, my wording was misleading. What I meant to say was that
according to ANSI C Standard, a character constant's type is int, not
char. In fact, no expression can ever have char as its type (except
if you cast it explicitly, I think), and a character constant is an
(rvalue) expression.
- Raw text -