Section 3.4.3, first paragraph:
Quote:
HI-TECH PICC supports both signed char and unsigned char 8-bit integral types. If the signed or unsigned keyword is absent from the variable’s definition, the default type is unsigned char unless the PICC --CHAR=signed option is used, in which case the default type is signed char.
Sounds good, unsigned chars per default is what I want.
Reading further on, third paragraph:
Quote:
Variables may be declared using the signed char and unsigned char keywords, respectively, to hold values of these types. Where only char is used in the declaration, the type will be signed char unless the option, mentioned above, to specify unsigned char as default is used.
Now I'm confused, since the two paragraphs claim the opposite to the other's.
So, without using --CHAR=(un)signed, will "char foo;" be signed or unsigned per default?
|