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 serhiy.storchaka
Recipients izbyshev, miss-islington, serhiy.storchaka, vstinner
Date 2018-11-09.13:50:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541771406.13.0.788709270274.issue35194@psf.upfronthosting.co.za>
In-reply-to
Content
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)"?
History
Date User Action Args
2018-11-09 13:50:06serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, izbyshev, miss-islington
2018-11-09 13:50:06serhiy.storchakasetmessageid: <1541771406.13.0.788709270274.issue35194@psf.upfronthosting.co.za>
2018-11-09 13:50:06serhiy.storchakalinkissue35194 messages
2018-11-09 13:50:06serhiy.storchakacreate