diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-23 02:03:43 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-10-23 02:03:43 +0000 |
| commit | 833c9488dd44d8896114eb3295cd3c484ae8aeb5 (patch) | |
| tree | bf2cdfda2ebba4ca6083641af773f2745853f651 /contrib/awk/node.c | |
| parent | 483b9871ba6cd9c441171746ff84e2f15438c141 (diff) | |
Notes
Diffstat (limited to 'contrib/awk/node.c')
| -rw-r--r-- | contrib/awk/node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/awk/node.c b/contrib/awk/node.c index 6f10b9f3c6d4..98df14358f4c 100644 --- a/contrib/awk/node.c +++ b/contrib/awk/node.c @@ -61,9 +61,9 @@ register NODE *n; return 0.0; cpend = cp + n->stlen; - while (cp < cpend && isspace(*cp)) + while (cp < cpend && isspace((unsigned char)*cp)) cp++; - if (cp == cpend || isalpha(*cp)) + if (cp == cpend || isalpha((unsigned char)*cp)) return 0.0; if (n->flags & MAYBE_NUM) { @@ -489,7 +489,7 @@ char **string_ptr; } if (do_posix) return ('x'); - if (! isxdigit((*string_ptr)[0])) { + if (! isxdigit((unsigned char)(*string_ptr)[0])) { warning("no hex digits in \\x escape sequence"); return ('x'); } |
