diff options
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 6f10b9f..98df143 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'); } |