This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srid
Recipients r.david.murray, srid
Date 2010-06-17.22:08:29
SpamBayes Score 0.053011887
Marked as misclassified No
Message-id <1276812511.8.0.969995810184.issue9020@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-06-17 22:08:31sridsetrecipients: + srid, r.david.murray
2010-06-17 22:08:31sridsetmessageid: <1276812511.8.0.969995810184.issue9020@psf.upfronthosting.co.za>
2010-06-17 22:08:29sridlinkissue9020 messages
2010-06-17 22:08:29sridcreate