diff options
author | Tony Cook <tony@develop-help.com> | 2022-07-12 10:18:59 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-08-08 15:15:02 +1000 |
commit | a577a1f18e7562749b5949934cacb911a1551dbd (patch) | |
tree | 77e96b088778733eddf2a4a2747a72aad7ba5498 | |
parent | 0f35d66c8dc2d97a67f09f88b802390fea7d458c (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && \ |