문제

I would like to know how can I tell to compiler that a #define is an unsigned char.

#define SET_BITS_LOW 0x80

Here SET_BITS_LOW is, by default, an int but I want an unsigned char

도움이 되었습니까?

해결책

You may try like this:

#define SET_BITS_LOW  ((unsigned char)0x80)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top