mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix compiler warning on HP-UX.
Cast param to isalnum() to int.
This commit is contained in:
parent
39d22e5693
commit
e08e1bc80a
1 changed files with 2 additions and 2 deletions
|
@ -228,8 +228,8 @@ get_coding_spec(const char *s, int size)
|
|||
} while (t[0] == '\x20' || t[0] == '\t');
|
||||
|
||||
begin = t;
|
||||
while (isalnum(t[0]) || t[0] == '-' || t[0] == '_' ||
|
||||
t[0] == '.')
|
||||
while (isalnum((int)t[0]) ||
|
||||
t[0] == '-' || t[0] == '_' || t[0] == '.')
|
||||
t++;
|
||||
|
||||
if (begin < t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue