aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dfa.c b/dfa.c
index 172ff794..012251a3 100644
--- a/dfa.c
+++ b/dfa.c
@@ -1083,7 +1083,7 @@ parse_bracket_exp (void)
#ifdef __GLIBC__
# define is_valid_unibyte_character(c) 1
#else
-# define is_valid_unibyte_character(c) (MBS_SUPPORT && btowc (c) != WEOF)
+# define is_valid_unibyte_character(c) (! (MBS_SUPPORT && btowc (c) == WEOF))
#endif
/* Return non-zero if C is a `word-constituent' byte; zero otherwise. */