Mercurial > emacs
changeset 74323:ad2b5e25b8f0
(regex_compile): Fix previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 30 Nov 2006 01:52:26 +0000 |
parents | c2ee8f5d0bb4 |
children | 0b796ab7466d |
files | src/regex.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regex.c Wed Nov 29 21:44:35 2006 +0000 +++ b/src/regex.c Thu Nov 30 01:52:26 2006 +0000 @@ -3021,7 +3021,14 @@ { 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