(re_match_2) <anychar>: In unibyte case, set buf_ch as unsigned.
authorKarl Heuer <kwzh@gnu.org>
Tue, 7 Apr 1998 04:07:58 +0000 (04:07 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 7 Apr 1998 04:07:58 +0000 (04:07 +0000)
regex.c

diff --git a/regex.c b/regex.c
index 2421f5a..29928e9 100644 (file)
--- a/regex.c
+++ b/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;
              }