unsigned_char
| Tue, 2008-03-18 15:50 | |
|
I need to represent "char" as "signed char". But GCCE by default set it as "unsigned char". |
|
| Tue, 2008-03-18 15:50 | |
|
I need to represent "char" as "signed char". But GCCE by default set it as "unsigned char". |
|
Forum posts: 463
Right Click on your project->properties.
Forum posts: 174
A quick web search gave me this: http://www.network-theory.co.uk/docs/gccintro/gccintro_71.html , which claims that you can use -fsigned-char and -funsigned-char.
As an addendum, the best solution would be to always declare your chars as either signed or unsigned. It's quite uncommon that the sign of chars actually matters, and when it does, it's much better to be explicit about it, for reasons of maintainability and readability.
http://ptrmobile.blogspot.com/
Forum posts: 9
Thanks for answer !
"-fsigned-char" options does not work on GCCE compiler. I try possible all combinations of "f", "un", "signed","char" but without results. So I used explicit form : signed char.