delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/29/09:24:08

Date: Wed, 29 Oct 1997 10:53:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: [Q]: unsigned char
In-Reply-To: <3.0.16.19971029005401.35c7faa4@hem1.passagen.se>
Message-ID: <Pine.SUN.3.91.971029105241.26592J-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019