summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-04-07 07:25:14 -0400
committerSteve Hay <steve.m.hay@googlemail.com>2016-04-07 17:02:03 +0100
commit6afdf560b1e1b599cea7c0540117728a044bcd25 (patch)
tree9ae94d61ef738f63e2537f5c7ff6e184dd3be46e
parent9d3b1ef1ae2327a7ee711525e99057e4b5925f51 (diff)
downloadperl-6afdf560b1e1b599cea7c0540117728a044bcd25.tar.gz
Fix op precedence problem
regcomp.c:1190:27: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index e7b82a8210..9332dead23 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1187,7 +1187,7 @@ S_get_ANYOF_cp_list_for_ssc(pTHX_ const RExC_state_t *pRExC_state,
* as well. But don't add them if inverting, as when that gets done below,
* it would exclude all these characters, including the ones it shouldn't
* that were added just above */
- if (ANYOF_FLAGS(node) & (ANYOF_INVERT|ANYOF_MATCHES_ALL_NON_UTF8_NON_ASCII)
+ if ((ANYOF_FLAGS(node) & (ANYOF_INVERT|ANYOF_MATCHES_ALL_NON_UTF8_NON_ASCII))
== ANYOF_MATCHES_ALL_NON_UTF8_NON_ASCII)
{
_invlist_union(invlist, PL_UpperLatin1, &invlist);