summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-02 20:43:25 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-02 20:43:25 (GMT)
commite08e1bc80a526ab850ae6d1be72f49e08c34f68b (patch)
treef7819e87d1acbd551e803901203ff7f470fe23ab /Parser/tokenizer.c
parent39d22e569394e7ddd27a3806dab9d0fc6032e13d (diff)
downloadcpython-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/tokenizer.c')
-rw-r--r--Parser/tokenizer.c4
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) {