Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.

This commit is contained in:
Stefan Krah 2010-07-19 18:06:46 +00:00
parent c7743aaac3
commit 0b9201fa1c
2 changed files with 2 additions and 1 deletions

View file

@ -8417,7 +8417,7 @@ PyObject *PyUnicode_Format(PyObject *format,
else if (c >= '0' && c <= '9') {
prec = c - '0';
while (--fmtcnt >= 0) {
c = Py_CHARMASK(*fmt++);
c = *fmt++;
if (c < '0' || c > '9')
break;
if ((prec*10) / 10 != prec) {