]> git.eshelyaron.com Git - emacs.git/commitdiff
(boyer_moore): Get charset base value of `untranslated'
authorKenichi Handa <handa@m17n.org>
Tue, 11 May 1999 01:34:28 +0000 (01:34 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 11 May 1999 01:34:28 +0000 (01:34 +0000)
by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).

src/search.c

index 8137f9d18710d64d21c11a71ca93fdaff861c429..4b135a6a84a8e62831bd5bcafef70fdb10d4aeda 100644 (file)
@@ -1623,7 +1623,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
              while (! CHAR_HEAD_P (*charstart))
                charstart--;
              untranslated = STRING_CHAR (charstart, ptr - charstart + 1);
-             if (charset_base == (untranslated & ~0xff))
+             if (charset_base == (untranslated & ~CHAR_FIELD3_MASK))
                {
                  TRANSLATE (ch, trt, untranslated);
                  if (! CHAR_HEAD_P (*ptr))