aboutsummaryrefslogtreecommitdiffstats
path: root/awkprintf.h
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 /awkprintf.h
parentdd5323a5c859ed8d6ecbc2e6828611c4ed8aa056 (diff)
downloadegawk-817ceaf211807bac2586621d1372419c15459e71.tar.gz
egawk-817ceaf211807bac2586621d1372419c15459e71.tar.bz2
egawk-817ceaf211807bac2586621d1372419c15459e71.zip
Fix ctype calls on Cygwin.
Diffstat (limited to 'awkprintf.h')
-rw-r--r--awkprintf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/awkprintf.h b/awkprintf.h
index aa094857..7a59678e 100644
--- a/awkprintf.h
+++ b/awkprintf.h
@@ -330,10 +330,10 @@ check_pos:
case '*':
if (cur == NULL)
break;
- if (! do_traditional && isdigit(*s1)) {
+ if (! do_traditional && isdigit((unsigned char) *s1)) {
int val = 0;
- for (; n0 > 0 && *s1 && isdigit(*s1); s1++, n0--) {
+ for (; n0 > 0 && *s1 && isdigit((unsigned char) *s1); s1++, n0--) {
val *= 10;
val += *s1 - '0';
}