summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 && \