diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2016-04-07 07:25:14 -0400 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2016-04-07 17:02:03 +0100 |
commit | 6afdf560b1e1b599cea7c0540117728a044bcd25 (patch) | |
tree | 9ae94d61ef738f63e2537f5c7ff6e184dd3be46e | |
parent | 9d3b1ef1ae2327a7ee711525e99057e4b5925f51 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |