This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile char as an unsigned char

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

Parents
  • 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

Reply
  • 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

Children