问问题
3877 次
2 回答
5
const signed char*
is not the same as const char*
. Check your compilation settings, because that would explain it. int8_t
is always (never say never =) at least everywhere i've seen) defined as signed char
.
于 2012-09-12T05:47:20.903 回答
4
According to [18.4 Integer types]:
typedef signed integer type int8_t; // optional
And [3.9.1 Fundamental types]:
Plain char, signed char, and unsigned char are three distinct types
int8_t
is a signed integer type (on my system defined as signed char
) and char
and signed char
are distinct types, so they are different.
于 2012-09-12T05:48:50.957 回答