diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 20:43:25 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 20:43:25 +0000 |
commit | e08e1bc80a526ab850ae6d1be72f49e08c34f68b (patch) | |
tree | f7819e87d1acbd551e803901203ff7f470fe23ab /Parser/tokenizer.c | |
parent | 39d22e569394e7ddd27a3806dab9d0fc6032e13d (diff) | |
download | cpython-git-e08e1bc80a526ab850ae6d1be72f49e08c34f68b.tar.gz |
Fix compiler warning on HP-UX.
Cast param to isalnum() to int.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 8490ae9428..800a1666e7 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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) { |