aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-08 20:28:13 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-08 20:28:13 +0300
commit7c20cc42ca1b77a2f3caddab543839efe897eeb0 (patch)
tree4da12185d28e7ad69cf46484ba4a01b1f3020bf8 /dfa.c
parente2b1395c84d6073b064dac58ccb28e1784577e75 (diff)
downloadegawk-7c20cc42ca1b77a2f3caddab543839efe897eeb0.tar.gz
egawk-7c20cc42ca1b77a2f3caddab543839efe897eeb0.tar.bz2
egawk-7c20cc42ca1b77a2f3caddab543839efe897eeb0.zip
Sync dfa.c and regex.h with their upstreams.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dfa.c b/dfa.c
index 439f9647..650ceac0 100644
--- a/dfa.c
+++ b/dfa.c
@@ -598,7 +598,8 @@ setbit_case_fold (
else
{
#if MBS_SUPPORT
- if (wctob ((unsigned char)b) == b)
+ int b2 = wctob ((unsigned char) b);
+ if (b2 == EOF || b2 == b)
#endif
setbit (b, c);
}