commit | 7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Feb 10 17:01:56 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Feb 10 17:01:56 1995 +0000 |
tree | 5d67635bbdfd2fe5bb0b055d532c371716c59d91 | |
parent | 760dd1031a8db93dc53ae3eb836bcc44a36918a1 [diff] [blame] |
use Py_CHARMASK
diff --git a/Python/compile.c b/Python/compile.c index 45bed39..cb25da2 100644 --- a/Python/compile.c +++ b/Python/compile.c
@@ -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 */