summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2022-07-12 10:18:59 +1000
committerTony Cook <tony@develop-help.com>2022-08-08 15:15:02 +1000
commita577a1f18e7562749b5949934cacb911a1551dbd (patch)
tree77e96b088778733eddf2a4a2747a72aad7ba5498
parent0f35d66c8dc2d97a67f09f88b802390fea7d458c (diff)
downloadperl-a577a1f18e7562749b5949934cacb911a1551dbd.tar.gz
Prevent Coverity complaining about the mixed & and &&
Also add parenthesis around uses of the phlags macro parameter. CID 354620, 353482.
-rw-r--r--pp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.h b/pp.h
index 3bb985c9e9..a1220b0be4 100644
--- a/pp.h
+++ b/pp.h
@@ -682,7 +682,7 @@ True if this op will be the return value of an lvalue subroutine
/* Used in various places that need to dereference a glob or globref */
# define MAYBE_DEREF_GV_flags(sv,phlags) \
( \
- (void)(phlags & SV_GMAGIC && (SvGETMAGIC(sv),0)), \
+ (void)(((phlags) & SV_GMAGIC) && (SvGETMAGIC(sv),0)), \
isGV_with_GP(sv) \
? (GV *)(sv) \
: SvROK(sv) && SvTYPE(SvRV(sv)) <= SVt_PVLV && \