Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 63102:3fa605688d03 2.7
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
| author | Stefan Krah <stefan@bytereef.org> |
|---|---|
| date | Mon, 19 Jul 2010 18:06:46 +0000 |
| parents | e84d51644144 |
| children | cc33508e80cd |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Mon Jul 19 17:35:50 2010 +0000 +++ b/Objects/unicodeobject.c Mon Jul 19 18:06:46 2010 +0000 @@ -8417,7 +8417,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) {
