Fix a compiler warning
authorFlorian Ragwitz <rafl@debian.org>
Sat, 6 Nov 2010 20:33:51 +0000 (21:33 +0100)
committerFlorian Ragwitz <rafl@debian.org>
Sat, 6 Nov 2010 20:34:27 +0000 (21:34 +0100)
gcc said:
  regexec.c: In function ‘S_reginclass’:
  regexec.c:6305: warning: suggest parentheses around ‘&&’ within ‘||’

regexec.c

index 7e479a3..2f02dcf 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -6302,7 +6302,7 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
 
     /* If the bitmap didn't (or couldn't) match, and something outside the
      * bitmap could match, try that */
-    if (! match && utf8_target || (flags & ANYOF_UNICODE)) {
+    if ((!match && utf8_target) || (flags & ANYOF_UNICODE)) {
        if (utf8_target && (flags & ANYOF_UNICODE_ALL) && c >= 256) {
            match = TRUE;
        }