commit | 2b6727bd8a714d334d34e6a9fabc1d0f651633a7 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Mar 06 12:12:02 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Mar 06 12:12:02 2001 +0000 |
tree | 7069489f11699b9626602340b84ec0db48cced03 | |
parent | a30c1001ef4fe6bceda269c4e7d7b06e929ccec0 [diff] [blame] |
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
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 @@ 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++;