Index: Include/Python.h =================================================================== --- Include/Python.h (revision 82109) +++ Include/Python.h (working copy) @@ -150,13 +150,8 @@ Set ml_flags in the PyMethodDef to METH_NOARGS. */ #define PyArg_NoArgs(v) PyArg_Parse(v, "") -/* Convert a possibly signed character to a nonnegative int */ -/* XXX This assumes characters are 8 bits wide */ -#ifdef __CHAR_UNSIGNED__ -#define Py_CHARMASK(c) (c) -#else -#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) -#endif +/* Cast a char to unsigned char. */ +#define Py_CHARMASK(c) ((unsigned char)(c)) #include "pyfpe.h"