delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/29/12:03:17

Date: Wed, 29 Oct 1997 19:01:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roman Suzi <nuser AT rsuzi DOT pgu DOT karelia DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: [Q]: unsigned char
In-Reply-To: <ABktjLqSgI@rsuzi.pgu.karelia.ru>
Message-ID: <Pine.SUN.3.91.971029185926.28347A-100000@is>
MIME-Version: 1.0

On Wed, 29 Oct 1997, Roman Suzi 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.
> 
>    NO!!! It has sizeof('\xFD') == 1
> 
> I have just checked it.
> That is, it is char all right!

Is it in C or in C++?  I tested this in a C program, and it printed 
4 for sizeof('\xFD').  Maybe you tried it in C++.  These are two 
different languages when such subtle points are concerned.

- Raw text -


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