summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-07-19 18:06:46 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-07-19 18:06:46 (GMT)
commit0b9201fa1cf87af559e8bbe38082df9d834ef353 (patch)
tree30913eb8de93a36f2a4fe14ed26729f64795786e /Objects
parentc7743aaac3b318c3e4c8583d8b1e5f3be267d119 (diff)
downloadcpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.zip
cpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.tar.gz
cpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.tar.bz2
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index b182927..81b62e4 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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) {