Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 2310:07913fb8f92f legacy-trunk
use Py_CHARMASK
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Feb 1995 17:01:56 +0000 |
| parents | fefae37c053c |
| children | 915fabec64a3 |
line wrap: on
line diff
--- a/Python/compile.c Fri Feb 10 17:01:08 1995 +0000 +++ b/Python/compile.c Fri Feb 10 17:01:56 1995 +0000 @@ -608,12 +608,12 @@ *p++ = c; break; case 'x': - if (isxdigit(*s)) { + if (isxdigit(Py_CHARMASK(*s))) { sscanf(s, "%x", &c); *p++ = c; do { s++; - } while (isxdigit(*s)); + } while (isxdigit(Py_CHARMASK(*s))); break; } /* FALLTHROUGH */
