Mail Archives: djgpp/1997/10/28/18:03:11
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 -