mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
This commit is contained in:
parent
a30c1001ef
commit
2b6727bd8a
3 changed files with 6 additions and 6 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue