delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/28/18:03:11

Message-Id: <3.0.16.19971029005401.35c7faa4@hem1.passagen.se>
Date: Wed, 29 Oct 1997 01:01:29 -0500
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: [Q]: unsigned char
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0

At 19.16 1997-10-28 +0200, you wrote:
>
>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.

Howcome '\xFD' isn't a character constant?  Doesn't something inside single
quotes (') mean that it is a character constant?  Why would you want to use
things inside single quotes if you wanted an integer anyway?


-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

*****************************************************
* A brief description of DJGPP:                     *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************

- Raw text -


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