[issue35194] A typo in a constant in cp932 codec
Serhiy Storchaka
report at bugs.python.org
Fri Nov 9 08:50:06 EST 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Converting to unsigned int can unnecessary widen the value or truncate higher bits. On other side, testing "0 <= (c)" can emit a compiler warning if c is unsigned.
Maybe test "Py_CHARMASK(c) == (c)"?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35194>
_______________________________________
More information about the Python-bugs-list
mailing list