summaryrefslogtreecommitdiff
path: root/src/include/regex/regex2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/regex/regex2.h')
-rw-r--r--src/include/regex/regex2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/regex/regex2.h b/src/include/regex/regex2.h
index d6cb23a5d3..f655a1f2a2 100644
--- a/src/include/regex/regex2.h
+++ b/src/include/regex/regex2.h
@@ -207,8 +207,8 @@ struct re_guts
#endif
#ifdef MULTIBYTE
-#define ISWORD(c) ((c >= 0 && c <= UCHAR_MAX) && \
- (isalnum(c) || (c) == '_'))
+#define ISWORD(c) (((c) >= 0 && (c) <= UCHAR_MAX) && \
+ (isalnum((unsigned char) (c)) || (c) == '_'))
#else
-#define ISWORD(c) (isalnum(c) || (c) == '_')
+#define ISWORD(c) (isalnum((unsigned char) (c)) || (c) == '_')
#endif