summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-27 17:18:52 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-27 17:18:52 -0800
commit9524b6e63023b4fae3378cdcf37196df70cffc54 (patch)
treecbbbf41efb070b29ad58e835afea2e039889f80f /op.h
parent0b55efd76dc4f6ffbdef0307f4f1cb24f1c0c9f7 (diff)
downloadperl-9524b6e63023b4fae3378cdcf37196df70cffc54.tar.gz
op.h: Parenthesize macro args for cUNOPx etc.
Without this, we cannot do cUNOPx(complex expression) without worrying about precedence issues.
Diffstat (limited to 'op.h')
-rw-r--r--op.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/op.h b/op.h
index a84a02bf69..80aac56d9b 100644
--- a/op.h
+++ b/op.h
@@ -419,18 +419,18 @@ struct loop {
OP * op_lastop;
};
-#define cUNOPx(o) ((UNOP*)o)
-#define cUNOP_AUXx(o) ((UNOP_AUX*)o)
-#define cBINOPx(o) ((BINOP*)o)
-#define cLISTOPx(o) ((LISTOP*)o)
-#define cLOGOPx(o) ((LOGOP*)o)
-#define cPMOPx(o) ((PMOP*)o)
-#define cSVOPx(o) ((SVOP*)o)
-#define cPADOPx(o) ((PADOP*)o)
-#define cPVOPx(o) ((PVOP*)o)
-#define cCOPx(o) ((COP*)o)
-#define cLOOPx(o) ((LOOP*)o)
-#define cMETHOPx(o) ((METHOP*)o)
+#define cUNOPx(o) ((UNOP*)(o))
+#define cUNOP_AUXx(o) ((UNOP_AUX*)(o))
+#define cBINOPx(o) ((BINOP*)(o))
+#define cLISTOPx(o) ((LISTOP*)(o))
+#define cLOGOPx(o) ((LOGOP*)(o))
+#define cPMOPx(o) ((PMOP*)(o))
+#define cSVOPx(o) ((SVOP*)(o))
+#define cPADOPx(o) ((PADOP*)(o))
+#define cPVOPx(o) ((PVOP*)(o))
+#define cCOPx(o) ((COP*)(o))
+#define cLOOPx(o) ((LOOP*)(o))
+#define cMETHOPx(o) ((METHOP*)(o))
#define cUNOP cUNOPx(PL_op)
#define cUNOP_AUX cUNOP_AUXx(PL_op)