diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-01 23:12:05 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-01 23:12:05 +0200 |
commit | 817ceaf211807bac2586621d1372419c15459e71 (patch) | |
tree | 2062142b09a193de4b0df99d812d05554019465c /eval.c | |
parent | dd5323a5c859ed8d6ecbc2e6828611c4ed8aa056 (diff) | |
download | egawk-817ceaf211807bac2586621d1372419c15459e71.tar.gz egawk-817ceaf211807bac2586621d1372419c15459e71.tar.bz2 egawk-817ceaf211807bac2586621d1372419c15459e71.zip |
Fix ctype calls on Cygwin.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -862,13 +862,13 @@ fmt_ok(NODE *n) return 0; while (*p && strchr(flags, *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(float_formats, *p) == NULL) return 0; @@ -1111,9 +1111,9 @@ grow_stack() char *val; if ((val = getenv("GAWK_STACKSIZE")) != NULL) { - if (isdigit(*val)) { + if (isdigit((unsigned char) *val)) { unsigned long n = 0; - for (; *val && isdigit(*val); val++) + for (; *val && isdigit((unsigned char) *val); val++) n = (n * 10) + *val - '0'; if (n >= 1) STACK_SIZE = n; |