Commit 6397418a authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(boyer_moore): Get charset base value of `untranslated'

by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
parent 4251fcec
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment