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/dfa.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/dfa.c')
-rw-r--r-- | contrib/awk/dfa.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/awk/dfa.c b/contrib/awk/dfa.c index 72ef552..88e8e3e 100644 --- a/contrib/awk/dfa.c +++ b/contrib/awk/dfa.c @@ -736,9 +736,9 @@ lex() setbit(c3, ccl); if (case_fold) if (ISUPPER(c3)) - setbit(tolower((unsigned char)c3), ccl); + setbit(tolower(c3), ccl); else if (ISLOWER(c3)) - setbit(toupper((unsigned char)c3), ccl); + setbit(toupper(c3), ccl); } } #else @@ -747,9 +747,9 @@ lex() setbit(c, ccl); if (case_fold) if (ISUPPER(c)) - setbit(tolower((unsigned char)c), ccl); + setbit(tolower(c), ccl); else if (ISLOWER(c)) - setbit(toupper((unsigned char)c), ccl); + setbit(toupper(c), ccl); ++c; } #endif @@ -773,10 +773,10 @@ lex() { zeroset(ccl); setbit(c, ccl); - if (isupper((unsigned char)c)) - setbit(tolower((unsigned char)c), ccl); + if (isupper(c)) + setbit(tolower(c), ccl); else - setbit(toupper((unsigned char)c), ccl); + setbit(toupper(c), ccl); return lasttok = CSET + charclass_index(ccl); } return c; @@ -2047,7 +2047,7 @@ dfacomp(s, len, d, searchflag) case_fold = 0; for (i = 0; i < len; ++i) if (ISUPPER(s[i])) - lcopy[i] = tolower((unsigned char)s[i]); + lcopy[i] = tolower(s[i]); else lcopy[i] = s[i]; |