Author: Miguel A. Ballicora
Date: 12:49:15 07/16/01
Go up one level in this thread
On July 16, 2001 at 14:58:04, Tord Romstad wrote: >On July 11, 2001 at 23:36:39, Robert Hyatt wrote: > >>2. The ANSI standards committee did the same stupid thing with bit fields that >>they did with other key issues, "this is left to the vendor's discretion..." >>Ie is a char signed or unsigned by default? Depends on the compiler. > >Please tell me you are just kidding. I have always assumed that chars are >signed by default, and a lot of my code depends on it. Are you saying that >my code could stop working when I switch to another compiler? B. Hyatt is on vacation so I will answer this. He is not kidding and your code could break with any other compiler easily. chars are not guaranteed to be signed or unsigned. It is implementation defined. It is safe to declared them unsigned or signed from the beginning. For instance, see: http://www.eskimo.com/~scs/C-faq/q1.1.html Regards, Miguel > >Tord
This page took 0.01 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.