diff options
author | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
commit | 105ae2c382b7a2c0420be6bd7b24da661805d6d2 (patch) | |
tree | 39b4d1af3e193a0ac6091c29ec198e975aeec4ba /contrib/awk/builtin.c | |
parent | 1433c9c29edb81cd29e7e2b588d73ec32b9698b6 (diff) | |
download | FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.zip FreeBSD-src-105ae2c382b7a2c0420be6bd7b24da661805d6d2.tar.gz |
Back out (unsigned char) cast, will use -funsigned-char instead
Diffstat (limited to 'contrib/awk/builtin.c')
-rw-r--r-- | contrib/awk/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++; |