summaryrefslogtreecommitdiffstats
path: root/Modules/stropmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/stropmodule.c')
-rw-r--r--Modules/stropmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index 54d444f..3c69fb3 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -766,7 +766,7 @@ strop_atoi(PyObject *self, PyObject *args)
x = (long) PyOS_strtoul(s, &end, base);
else
x = PyOS_strtol(s, &end, base);
- if (end == s || !isalnum(end[-1]))
+ if (end == s || !isalnum((int)end[-1]))
goto bad;
while (*end && isspace(Py_CHARMASK(*end)))
end++;