summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2006-04-09 01:59:45 +0000
committerRichard M. Stallman <rms@gnu.org>2006-04-09 01:59:45 +0000
commit6786a1071ab8f468cc5919914ce98c2c3692213e (patch)
tree3c56aa2fa8544dbc7255405f0ce213e0737dd0b3 /src/search.c
parent1b155fbd766b0a0f78fca5de62dd16a3542883f1 (diff)
downloademacs-6786a1071ab8f468cc5919914ce98c2c3692213e.tar.gz
(boyer_moore): Test ch >= 0400, not >.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index b92812597d5..dfbf66fc7ed 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1720,7 +1720,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
ch = -1;
}
- if (ch > 0400)
+ if (ch >= 0400)
j = ((unsigned char) ch) | 0200;
else
j = *ptr;
@@ -1739,7 +1739,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
while (1)
{
TRANSLATE (ch, inverse_trt, ch);
- if (ch > 0400)
+ if (ch >= 0400)
j = ((unsigned char) ch) | 0200;
else
j = (unsigned char) ch;