changeset 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 20130dbb0f1e
children a21d00510558
files src/search.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Sat Apr 08 23:42:25 2006 +0000
+++ b/src/search.c	Sun Apr 09 01:59:45 2006 +0000
@@ -1720,7 +1720,7 @@
 		ch = -1;
 	    }
 
-	  if (ch > 0400)
+	  if (ch >= 0400)
 	    j = ((unsigned char) ch) | 0200;
 	  else
 	    j = *ptr;
@@ -1739,7 +1739,7 @@
 	      while (1)
 		{
 		  TRANSLATE (ch, inverse_trt, ch);
-		  if (ch > 0400)
+		  if (ch >= 0400)
 		    j = ((unsigned char) ch) | 0200;
 		  else
 		    j = (unsigned char) ch;