]> granicus.if.org Git - python/commit
Merged revisions 82969 via svnmerge from
authorStefan Krah <stefan@bytereef.org>
Mon, 19 Jul 2010 13:36:13 +0000 (13:36 +0000)
committerStefan Krah <stefan@bytereef.org>
Mon, 19 Jul 2010 13:36:13 +0000 (13:36 +0000)
commitd483a1a12b5ab88cc32f140e537fc172cb0c423d
treee5434968023aecef343982949dd5ca43413963a3
parenta63726ffc887cdfc775b9ef6b4091a12511a5555
Merged revisions 82969 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

........
  r82969 | stefan.krah | 2010-07-19 15:14:01 +0200 (Mon, 19 Jul 2010) | 14 lines

  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.
........
Include/Python.h