summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-03-06 12:12:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-03-06 12:12:02 (GMT)
commit2b6727bd8a714d334d34e6a9fabc1d0f651633a7 (patch)
tree7069489f11699b9626602340b84ec0db48cced03 /Objects
parenta30c1001ef4fe6bceda269c4e7d7b06e929ccec0 (diff)
downloadcpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.zip
cpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.tar.gz
cpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.tar.bz2
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 72d5323..9a1f0e6 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -182,7 +182,7 @@ PyInt_FromString(char *s, char **pend, int base)
x = (long) PyOS_strtoul(s, &end, base);
else
x = PyOS_strtol(s, &end, base);
- if (end == s || !isalnum(end[-1]))
+ if (end == s || !isalnum(Py_CHARMASK(end[-1])))
goto bad;
while (*end && isspace(Py_CHARMASK(*end)))
end++;