changeset 66259:d0daa61f9e6f

(boyer_moore): Surround the '||' part of expression in `if' condition by parentheses explicitly.
author Kenichi Handa <handa@m17n.org>
date Fri, 21 Oct 2005 00:42:13 +0000
parents 4e4cce911e2e
children 86f5594365ad
files src/search.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Thu Oct 20 23:02:18 2005 +0000
+++ b/src/search.c	Fri Oct 21 00:42:13 2005 +0000
@@ -1709,7 +1709,7 @@
 	  if (ASCII_BYTE_P (*ptr) || ! multibyte)
 	    ch = *ptr;
 	  else if (charset_base
-		   && (pat_end - ptr) == 1 || CHAR_HEAD_P (ptr[1]))
+		   && ((pat_end - ptr) == 1 || CHAR_HEAD_P (ptr[1])))
 	    {
 	      unsigned char *charstart = ptr - 1;