Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35194> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com