summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-08-09 12:21:53 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-24 11:36:14 -0600
commitb27fd97ad21e14201a125cc5f2b9adec3273b848 (patch)
treed4e00a1558a0722370317cdc7ec7f07b101295a3 /regcomp.h
parent8efd3f97d6982ca46d8f5edca32a16d3b4c34eee (diff)
downloadperl-b27fd97ad21e14201a125cc5f2b9adec3273b848.tar.gz
regcomp.h: Parenthesize macro formal parameter
Not doing so can cause problems, so it is standard procedure to parenthesize all parameters within a macro definition.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 92c2f3fe18..5e8bcb545f 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -471,7 +471,7 @@ struct regnode_ssc {
&& (((struct regnode_charclass_class*)(p))->classflags))
#define ANYOF_CLASS_TEST_ANY_SET(p) ANYOF_POSIXL_TEST_ANY_SET(p)
-#define ANYOF_POSIXL_OR(source, dest) STMT_START { (dest)->classflags |= source->classflags ; } STMT_END
+#define ANYOF_POSIXL_OR(source, dest) STMT_START { (dest)->classflags |= (source)->classflags ; } STMT_END
#define ANYOF_CLASS_OR(source, dest) ANYOF_POSIXL_OR((source), (dest))
#define ANYOF_BITMAP_ZERO(ret) Zero(((struct regnode_charclass*)(ret))->bitmap, ANYOF_BITMAP_SIZE, char)