aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2006-04-09 01:59:45 +0000
committerRichard M. Stallman <[email protected]>2006-04-09 01:59:45 +0000
commit6786a1071ab8f468cc5919914ce98c2c3692213e (patch)
tree3c56aa2fa8544dbc7255405f0ce213e0737dd0b3 /src
parent1b155fbd766b0a0f78fca5de62dd16a3542883f1 (diff)
(boyer_moore): Test ch >= 0400, not >.
Diffstat (limited to 'src')
-rw-r--r--src/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index b92812597d..dfbf66fc7e 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;