summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index 2421f5a884f..29928e9dfc2 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -4555,7 +4555,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
else
#endif /* not emacs */
{
- buf_ch = *d;
+ buf_ch = (unsigned char) *d;
buf_charlen = 1;
}