summaryrefslogtreecommitdiffstats
path: root/contrib/awk/eval.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-23 02:03:43 +0000
committerache <ache@FreeBSD.org>1997-10-23 02:03:43 +0000
commit436deeda1a243078fb9907dfb57558f6d481936d (patch)
tree5cb2a43d1de737532a8761c9b05aef6b70be3ab3 /contrib/awk/eval.c
parent94286bf50951c81435f65927e7b8ef8554ab5877 (diff)
downloadFreeBSD-src-436deeda1a243078fb9907dfb57558f6d481936d.zip
FreeBSD-src-436deeda1a243078fb9907dfb57558f6d481936d.tar.gz
Add more (unsigned char) casts to ctype macros
Fix casetable usage in the same manner too
Diffstat (limited to 'contrib/awk/eval.c')
-rw-r--r--contrib/awk/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/awk/eval.c b/contrib/awk/eval.c
index aa2e881..6ba00f6a 100644
--- a/contrib/awk/eval.c
+++ b/contrib/awk/eval.c
@@ -1652,13 +1652,13 @@ NODE *n;
return 0;
while (*p && strchr(" +-#", *p) != NULL) /* flags */
p++;
- while (*p && isdigit(*p)) /* width - %*.*g is NOT allowed */
+ while (*p && isdigit((unsigned char)*p)) /* width - %*.*g is NOT allowed */
p++;
- if (*p == '\0' || (*p != '.' && ! isdigit(*p)))
+ if (*p == '\0' || (*p != '.' && ! isdigit((unsigned char)*p)))
return 0;
if (*p == '.')
p++;
- while (*p && isdigit(*p)) /* precision */
+ while (*p && isdigit((unsigned char)*p)) /* precision */
p++;
if (*p == '\0' || strchr("efgEG", *p) == NULL)
return 0;
OpenPOWER on IntegriCloud