Mail Archives: djgpp/1997/10/28/12:28:29

Date: Tue, 28 Oct 1997 19:16:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
cc: djgpp AT delorie DOT com
Subject: Re: [Q]: unsigned char
In-Reply-To: <>
Message-ID: <Pine.SUN.3.91.971028191452.24696C-100000@is>
MIME-Version: 1.0

On Mon, 27 Oct 1997, Vik Heyndrickx wrote:

> You are right. Relying on the default setting of -fsigned-char or
> -funsigned-char is dangerous. But '\xFD' should be positive when
> compiled with -funsigned-char. I tested this and it also *is*. So either
> Roman Suzi must use an older buggy compiler or he is using a defective
> pgcc or I am missing something.

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.

- Raw text -

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