This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c518471
)
regcomp.h: Parenthesize param in macro expansion
author
Karl Williamson
<khw@cpan.org>
Sat, 21 Sep 2019 19:18:12 +0000
(13:18 -0600)
committer
Karl Williamson
<khw@cpan.org>
Fri, 27 Sep 2019 17:20:35 +0000
(11:20 -0600)
This is always a good idea
regcomp.h
patch
|
blob
|
blame
|
history
diff --git
a/regcomp.h
b/regcomp.h
index
5715e22
..
d9f2cbe
100644
(file)
--- a/
regcomp.h
+++ b/
regcomp.h
@@
-336,7
+336,7
@@
struct regnode_ssc {
#define MASK(p) ((char*)OPERAND(p))
#define STR_LEN(p) (((struct regnode_string *)p)->str_len)
#define STRING(p) (((struct regnode_string *)p)->string)
-#define STR_SZ(l) ((
l
+ sizeof(regnode) - 1) / sizeof(regnode))
+#define STR_SZ(l) ((
(l)
+ sizeof(regnode) - 1) / sizeof(regnode))
#define NODE_SZ_STR(p) (STR_SZ(STR_LEN(p))+1)
#undef NODE_ALIGN