mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove compiler warnings on Solaris 8.
Can go into 2.2.x, but not necessary.
This commit is contained in:
parent
bcc2c125f8
commit
3afb2d2bba
4 changed files with 5 additions and 3 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue