diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-26 12:14:54 +0000 |
commit | bca81101827e6862de61d441b36808ff2231b93e (patch) | |
tree | b3e8b611a9c2ab5b08c7e0f99a4f1f9de9a17619 /contrib/awk/dfa.c | |
parent | 60152ec53173fa27fc82035b85e13343afbf812e (diff) | |
download | src-bca81101827e6862de61d441b36808ff2231b93e.tar.gz src-bca81101827e6862de61d441b36808ff2231b93e.zip |
Back out (unsigned char) cast, will use -funsigned-char instead
Notes
Notes:
svn path=/head/; revision=30729
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 72ef552a1666..88e8e3e2d951 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]; |