Date: Wed, 29 Oct 1997 10:53:14 +0200 (IST) From: Eli Zaretskii To: Peter Palotas cc: djgpp AT delorie DOT com Subject: Re: [Q]: unsigned char In-Reply-To: <3.0.16.19971029005401.35c7faa4@hem1.passagen.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.