commit | 99212f61db1155c4d82b449078fe337cbd42a19f | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 17:58:26 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Mon Jul 19 17:58:26 2010 +0000 |
tree | e4fae7a86ee7690df76b9e33a8f11a85c8662ce9 | |
parent | 9542cc6eb594f5b1e26b9dfacd9f427f64b6019c [diff] [blame] |
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6270e9b..43c827f 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -9242,7 +9242,7 @@ 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) {