From e08e1bc80a526ab850ae6d1be72f49e08c34f68b Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 2 Nov 2002 20:43:25 +0000 Subject: [PATCH] Fix compiler warning on HP-UX. Cast param to isalnum() to int. --- Parser/tokenizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 8490ae9428d..800a1666e7c 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) {