comparison src/search.c @ 69882:1133b1df91d7

(boyer_moore): Test ch >= 0400, not >.
author Richard M. Stallman <rms@gnu.org>
date Sun, 09 Apr 2006 01:59:45 +0000
parents de924a86ee65
children 7510757f449b c156f6a9e7b5
comparison
equal deleted inserted replaced
69881:20130dbb0f1e 69882:1133b1df91d7
1718 ch = STRING_CHAR (charstart, ptr - charstart + 1); 1718 ch = STRING_CHAR (charstart, ptr - charstart + 1);
1719 if (charset_base != (ch & ~CHAR_FIELD3_MASK)) 1719 if (charset_base != (ch & ~CHAR_FIELD3_MASK))
1720 ch = -1; 1720 ch = -1;
1721 } 1721 }
1722 1722
1723 if (ch > 0400) 1723 if (ch >= 0400)
1724 j = ((unsigned char) ch) | 0200; 1724 j = ((unsigned char) ch) | 0200;
1725 else 1725 else
1726 j = *ptr; 1726 j = *ptr;
1727 1727
1728 if (i == infinity) 1728 if (i == infinity)
1737 int starting_j = j; 1737 int starting_j = j;
1738 1738
1739 while (1) 1739 while (1)
1740 { 1740 {
1741 TRANSLATE (ch, inverse_trt, ch); 1741 TRANSLATE (ch, inverse_trt, ch);
1742 if (ch > 0400) 1742 if (ch >= 0400)
1743 j = ((unsigned char) ch) | 0200; 1743 j = ((unsigned char) ch) | 0200;
1744 else 1744 else
1745 j = (unsigned char) ch; 1745 j = (unsigned char) ch;
1746 1746
1747 /* For all the characters that map into CH, 1747 /* For all the characters that map into CH,