Message108067
Py_CHARMASK(c) = 4294967295
And I think I found the problem: from Include/Python.h
/* 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
__CHAR_UNSIGNED__ is defined to 1, but when I printed the value of sizeof(c) in the above while loop, it printed 4. Therefore .. c is 32 bits side. |
|
Date |
User |
Action |
Args |
2010-06-17 22:08:31 | srid | set | recipients:
+ srid, r.david.murray |
2010-06-17 22:08:31 | srid | set | messageid: <1276812511.8.0.969995810184.issue9020@psf.upfronthosting.co.za> |
2010-06-17 22:08:29 | srid | link | issue9020 messages |
2010-06-17 22:08:29 | srid | create | |
|