diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 20:43:25 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-11-02 20:43:25 (GMT) |
commit | e08e1bc80a526ab850ae6d1be72f49e08c34f68b (patch) | |
tree | f7819e87d1acbd551e803901203ff7f470fe23ab /Parser | |
parent | 39d22e569394e7ddd27a3806dab9d0fc6032e13d (diff) | |
download | cpython-e08e1bc80a526ab850ae6d1be72f49e08c34f68b.zip cpython-e08e1bc80a526ab850ae6d1be72f49e08c34f68b.tar.gz cpython-e08e1bc80a526ab850ae6d1be72f49e08c34f68b.tar.bz2 |
Fix compiler warning on HP-UX.
Cast param to isalnum() to int.
Diffstat (limited to 'Parser')
-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 8490ae9..800a166 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) { |