comparison src/regex.c @ 74277:6a6741f593f5

(regex_compile): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Tue, 28 Nov 2006 01:13:26 +0000
parents ed5899bf4f45
children ad2b5e25b8f0
comparison
equal deleted inserted replaced
74276:ed5899bf4f45 74277:6a6741f593f5
2937 re_wctype_to_bit (cc)); 2937 re_wctype_to_bit (cc));
2938 2938
2939 for (ch = 0; ch < 1 << BYTEWIDTH; ++ch) 2939 for (ch = 0; ch < 1 << BYTEWIDTH; ++ch)
2940 { 2940 {
2941 int translated = TRANSLATE (ch); 2941 int translated = TRANSLATE (ch);
2942 if (translated < 1 << BYTEWIDTH 2942 if (translated < (1 << BYTEWIDTH)
2943 && re_iswctype (btowc (ch), cc)) 2943 && re_iswctype (btowc (ch), cc))
2944 SET_LIST_BIT (translated); 2944 SET_LIST_BIT (translated);
2945 } 2945 }
2946 2946
2947 /* In most cases the matching rule for char classes 2947 /* In most cases the matching rule for char classes