aboutsummaryrefslogtreecommitdiffstats
path: root/re.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 /re.c
parentdd5323a5c859ed8d6ecbc2e6828611c4ed8aa056 (diff)
downloadegawk-817ceaf211807bac2586621d1372419c15459e71.tar.gz
egawk-817ceaf211807bac2586621d1372419c15459e71.tar.bz2
egawk-817ceaf211807bac2586621d1372419c15459e71.zip
Fix ctype calls on Cygwin.
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 379ff144..091a7774 100644
--- a/re.c
+++ b/re.c
@@ -583,7 +583,7 @@ again:
count--;
if (*sp == '-' && do_lint && ! range_warned && count == 1
&& sp[-1] != '[' && sp[1] != ']'
- && ! isdigit(sp[-1]) && ! isdigit(sp[1])
+ && ! isdigit((unsigned char) sp[-1]) && ! isdigit((unsigned char) sp[1])
&& ! (sp[-2] == '[' && sp[-1] == '^')) {
range_warned = TRUE;
warning(_("range of the form `[%c-%c]' is locale dependant"),