(boyer_moore): Surround the '||' part of expression in
authorKenichi Handa <handa@m17n.org>
Fri, 21 Oct 2005 00:42:13 +0000 (00:42 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 21 Oct 2005 00:42:13 +0000 (00:42 +0000)
`if' condition by parentheses explicitly.

src/search.c

index ae36755..d3a5bd8 100644 (file)
@@ -1709,7 +1709,7 @@ boyer_moore (n, base_pat, len, len_byte, trt, inverse_trt,
          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;