commit | a1775944ae4f9770aa5980a2c2a5454d3994db25 | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 13:14:01 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 13:14:01 2010 +0000 |
tree | cd482727ae2d73521932b143f09ec85cd3b737a5 | |
parent | 682f60352e782dae1c01e8b77a6150ef5669ee74 [diff] |
Issue #9036: Throughout the code base, Py_CHARMASK is used on 8-bit wide signed/unsigned chars or on integers directly derived from those. In all cases, it could be replaced by a simple cast to (unsigned char). Reasons for the change: a) Make the comment more explicit. b) If char is unsigned, the cast is optimized away. c) If char is unsigned, gcc emits spurious "array subscript has type 'char'" warnings.