From 105ae2c382b7a2c0420be6bd7b24da661805d6d2 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 26 Oct 1997 12:14:54 +0000 Subject: Back out (unsigned char) cast, will use -funsigned-char instead --- contrib/awk/builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/awk/builtin.c') diff --git a/contrib/awk/builtin.c b/contrib/awk/builtin.c index 32bde1c..dc2c1d3 100644 --- a/contrib/awk/builtin.c +++ b/contrib/awk/builtin.c @@ -231,7 +231,7 @@ NODE *tree; while (l1 > 0) { if (l2 > l1) break; - if (casetable[(unsigned char)*p1] == casetable[(unsigned char)*p2] + if (casetable[(int)*p1] == casetable[(int)*p2] && (l2 == 1 || strncasecmp(p1, p2, l2) == 0)) { ret = 1 + s1->stlen - l1; break; @@ -2038,7 +2038,7 @@ size_t len; } } else if (*str == '0') { for (; len > 0; len--) { - if (! isdigit((unsigned char)*str) || *str == '8' || *str == '9') + if (! isdigit(*str) || *str == '8' || *str == '9') goto done; retval = (retval * 8) + (*str - '0'); str++; -- cgit v1.1