Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bitfields and Crafty

Author: Dann Corbit

Date: 14:52:07 07/17/01

Go up one level in this thread


On July 17, 2001 at 17:43:17, Heiner Marxen wrote:
[snip]
>The only C type the signedness of which is not defined by the language
>proper is char.  This is the only exception, all other (integral) types
>have a well defined signedness.  int is always signed.
>
>To get a signed char write
>
>signed char	foo;
>
>Otherwise the keyword 'signed' is useless.  All of int, short and long
>are signed, already.
>
>Ah, and yes, there are compilers, which make plain 'char' unsigned.

Yes.  And a saving grace is that almost every compiler with that default has
also an option to change the signed nature of unadorned char with a command line
switch (at least all of the compilers I have used have this option).

In any case, it's mostly a tempest in a teapot.  You can get GCC for just about
any platform and it has the normal (signed) default.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.