aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-01 23:12:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-01 23:12:05 +0200
commit817ceaf211807bac2586621d1372419c15459e71 (patch)
tree2062142b09a193de4b0df99d812d05554019465c /builtin.c
parentdd5323a5c859ed8d6ecbc2e6828611c4ed8aa056 (diff)
downloadegawk-817ceaf211807bac2586621d1372419c15459e71.tar.gz
egawk-817ceaf211807bac2586621d1372419c15459e71.tar.bz2
egawk-817ceaf211807bac2586621d1372419c15459e71.zip
Fix ctype calls on Cygwin.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin.c b/builtin.c
index dc811022..708a8bff 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1666,7 +1666,7 @@ sub_common(int nargs, long how_many, int backdigs)
ampersands++;
} else if (*scan == '\\') {
if (backdigs) { /* gensub, behave sanely */
- if (isdigit(scan[1])) {
+ if (isdigit((unsigned char) scan[1])) {
ampersands++;
scan++;
} else { /* \q for any q --> q */
@@ -1741,7 +1741,7 @@ sub_common(int nargs, long how_many, int backdigs)
|| (repllen > 0 && mb_indices[scan - repl] == 1))
) {
if (backdigs) { /* gensub, behave sanely */
- if (isdigit(scan[1])) {
+ if (isdigit((unsigned char) scan[1])) {
int dig = scan[1] - '0';
if (dig < NUMSUBPATS(rp, t->stptr) && SUBPATSTART(rp, tp->stptr, dig) != -1) {
char *start, *end;
@@ -2200,7 +2200,7 @@ nondec2awknum(char *str, size_t len)
}
} else if (*str == '0') {
for (; len > 0; len--) {
- if (! isdigit(*str))
+ if (! isdigit((unsigned char) *str))
goto done;
else if (*str == '8' || *str == '9') {
str = start;