From 86dc6ccb9290c8f52b3bda7e27f7a326e932a159 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 21 Oct 2005 00:42:13 +0000 Subject: [PATCH] (boyer_moore): Surround the '||' part of expression in `if' condition by parentheses explicitly. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index ae36755a684..d3a5bd838a9 100644 --- a/src/search.c +++ b/src/search.c @@ -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; -- 2.39.5