summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-21 13:14:25 -0600
committerKarl Williamson <khw@cpan.org>2019-09-27 11:20:35 -0600
commitc5184715c0018eac1440599795d6341d07559dd4 (patch)
treea7415811daca57e2a0fe60bd88f24047982e8612 /regcomp.h
parentb61e55cb1695ff940310c75f08e41cfbfc16d73c (diff)
downloadperl-c5184715c0018eac1440599795d6341d07559dd4.tar.gz
regcomp.h: Remove duplicate macro expansion
This macro has the same definition as another.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 62f4398ed1..5715e22567 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -331,7 +331,8 @@ struct regnode_ssc {
#define FLAGS(p) ((p)->flags) /* Caution: Doesn't apply to all \
regnode types. For some, it's the \
character set of the regnode */
-#define OPERAND(p) (((struct regnode_string *)p)->string)
+#define OPERAND(p) STRING(p)
+
#define MASK(p) ((char*)OPERAND(p))
#define STR_LEN(p) (((struct regnode_string *)p)->str_len)
#define STRING(p) (((struct regnode_string *)p)->string)