summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-07 08:06:08 +0100
committerYves Orton <demerphq@gmail.com>2023-03-07 19:40:38 +0800
commit3c1759e470b2636903c76b2d75c47cfe28f5e017 (patch)
treea8a647c79c51d5c270f857d0194bee5272735384 /sv.h
parent2da014bc9fd80ae0453878c6cca2e22309637641 (diff)
downloadperl-3c1759e470b2636903c76b2d75c47cfe28f5e017.tar.gz
perl.h - make sure macros using negation are paren wrapped
Noticed by Zefram
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index 28aefd2e8f..27bdb2c5b7 100644
--- a/sv.h
+++ b/sv.h
@@ -1226,7 +1226,7 @@ C<sv_force_normal> does nothing.
#define SvTHINKFIRST(sv) (SvFLAGS(sv) & SVf_THINKFIRST)
#define SVs_PADMY 0
-#define SvPADMY(sv) !(SvFLAGS(sv) & SVs_PADTMP)
+#define SvPADMY(sv) (!(SvFLAGS(sv) & SVs_PADTMP))
#ifndef PERL_CORE
# define SvPADMY_on(sv) SvPADTMP_off(sv)
#endif