summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1998-04-07 04:07:58 +0000
committerKarl Heuer <kwzh@gnu.org>1998-04-07 04:07:58 +0000
commit2d79084e7a48592e949fe50a81536f0df146c5ac (patch)
treea90e2377cf688827f1240606a504157f6ff83caa
parent5e47a7f0ec2afe51c4c89bdf0696e0073bf786e1 (diff)
downloadgnulib-2d79084e7a48592e949fe50a81536f0df146c5ac.tar.gz
(re_match_2) <anychar>: In unibyte case, set buf_ch as unsigned.
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 2421f5a884..29928e9dfc 100644
--- 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;
}