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 pitrou
Recipients eric.smith, loewis, pitrou, skrah
Date 2010-06-20.13:27:02
SpamBayes Score 0.020327758
Marked as misclassified No
Message-id <1277040424.45.0.292669416337.issue9036@psf.upfronthosting.co.za>
In-reply-to
Content
> Thus,
> ((unsigned char)((c) & 0xff)) and ((unsigned char)(c)) should produce
> the same results.

If it's the case, it's probably optimized away by the compiler anyway.

> There is no reason not to do the cast when __CHAR_UNSIGNED__ is
> defined (it will be a no-op).

Agreed. It also reduces the opportunity for bugs :)
History
Date User Action Args
2010-06-20 13:27:04pitrousetrecipients: + pitrou, loewis, eric.smith, skrah
2010-06-20 13:27:04pitrousetmessageid: <1277040424.45.0.292669416337.issue9036@psf.upfronthosting.co.za>
2010-06-20 13:27:02pitroulinkissue9036 messages
2010-06-20 13:27:02pitroucreate