(regex_compile): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Tue, 28 Nov 2006 01:13:26 +0000 (01:13 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 28 Nov 2006 01:13:26 +0000 (01:13 +0000)
src/regex.c

index 7967a48..0e15c5e 100644 (file)
@@ -2939,7 +2939,7 @@ regex_compile (pattern, size, syntax, bufp)
                         for (ch = 0; ch < 1 << BYTEWIDTH; ++ch)
                          {
                            int translated = TRANSLATE (ch);
-                           if (translate < 1 << BYTEWIDTH
+                           if (translated < (1 << BYTEWIDTH)
                                && re_iswctype (btowc (ch), cc))
                              SET_LIST_BIT (translated);
                          }