aboutsummaryrefslogtreecommitdiffstats
path: root/src/regex.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2006-12-15 01:33:37 +0000
committerKenichi Handa <[email protected]>2006-12-15 01:33:37 +0000
commited00c2ac8337ed5ec9485a69e67f37d2909a84dc (patch)
treed0d1743966c485408293f01ec6d622a6f316c4e4 /src/regex.c
parentb0bad611485618f1071fc21a200d9c2b827b8cc8 (diff)
(regex_compile): Synch with HEAD.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index b97ee7943f..4b011634ae 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -2992,7 +2992,8 @@ regex_compile (pattern, size, syntax, bufp)
if (re_iswctype (btowc (ch), cc))
{
c = TRANSLATE (ch);
- SET_LIST_BIT (c);
+ if (c < (1 << BYTEWIDTH))
+ SET_LIST_BIT (c);
}
if (target_multibyte)