Use Py_CHARMASK for ctype macros. Fixes bug #232787.

This commit is contained in:
Martin v. Löwis 2001-03-06 12:12:02 +00:00
parent a30c1001ef
commit 2b6727bd8a
3 changed files with 6 additions and 6 deletions

View file

@ -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++;