[issue9020] 2.7: eval hangs on AIX because sizeof(char) == 32

Sridhar Ratnakumar report at bugs.python.org
Fri Jun 18 19:59:04 CEST 2010


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

Ok, I now have a fix for this issue. The reason for sizeof(c) being 4 bytes is because it is defined as `register int` ... and yet `Py_CHARMASK` fails to type-cast `c` to a `char` type, which is exactly what the attached patch does.

----------
keywords: +patch
title: 2.7: eval hangs on AIX -> 2.7: eval hangs on AIX because sizeof(char) == 32
Added file: http://bugs.python.org/file17711/tok_get_infinite_loop_fix.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9020>
_______________________________________


More information about the Python-bugs-list mailing list