From 3aaab9a080dcb33ad3d5a96550ce259475c7c35e Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 30 Nov 2006 01:53:16 +0000 Subject: [PATCH] (regex_compile): Fix previous change. --- src/ChangeLog | 4 ++++ src/regex.c | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3be6df34214..f6fd4a78737 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-11-30 Kenichi Handa + + * regex.c (regex_compile): Fix previous change. + 2006-11-29 Juanma Barranquero * sound.c (Fplay_sound_internal): Remove spurious newline in docstring. diff --git a/src/regex.c b/src/regex.c index 0e15c5eaf44..c0dd6e00ffc 100644 --- a/src/regex.c +++ b/src/regex.c @@ -3021,7 +3021,14 @@ regex_compile (pattern, size, syntax, bufp) { for (this_char = range_start; this_char <= range_end; this_char++) - SET_LIST_BIT (TRANSLATE (this_char)); + { + int translated = TRANSLATE (this_char); + if (translated < (1 << BYTEWIDTH)) + SET_LIST_BIT (translated); + else + SET_RANGE_TABLE_WORK_AREA + (range_table_work, translated, translated); + } } } else -- 2.39.2