summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-10 17:01:56 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-10 17:01:56 (GMT)
commit7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a (patch)
tree5d67635bbdfd2fe5bb0b055d532c371716c59d91 /Python/compile.c
parent760dd1031a8db93dc53ae3eb836bcc44a36918a1 (diff)
downloadcpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.zip
cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.gz
cpython-7f7f27483996ae9fcb2ed4fb0a3690280cda7b4a.tar.bz2
use Py_CHARMASK
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
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 @@ parsestr(s)
*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 */