Hello,
Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default?
I know that there are some help topics on this issue, but they seem to be giving a precompiler directive to tell the compiler to always compile char's as signed char's....
Thanks! Eric
One more quick question, where do I put this diag_suppress line? is it a compiler directive and goes in a C file?
Thanks, Eric
What's a negative A? Or negative '-'?
"Unsigned chars" make no sense. Unsigned 8-bit integers, yes, but not "chars".
Use char only, and always, when you mean human-readable characters alone or in strings. Use other typedefs for integer types.
Drew, I understand you Use char only, and always, when you mean human-readable characters alone or in strings. Use other typedefs for integer types. but do see a risk in your post being misinterpreted.
so,
TO PRESERVE DATA STORAGE USE (UNSIGNED) CHAR EVERY TIME IT WILL BE ENOUGH.
Erik
in the misc controls under C/C++ of configure flash tools
i.e.
Select Flash Select configure flash tools Select C++ add it to the line "misc controls"
Robert,
Thanks a lot for your help, that worked great.