diff options
author | Karl Williamson <khw@cpan.org> | 2019-09-21 13:18:12 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-27 11:20:35 -0600 |
commit | 59e54936361dbc8a6aa3224d5456d809c079d269 (patch) | |
tree | 71826bdcbc0d075d3a9c5fe098f1c0a68508bb36 /regcomp.h | |
parent | c5184715c0018eac1440599795d6341d07559dd4 (diff) | |
download | perl-59e54936361dbc8a6aa3224d5456d809c079d269.tar.gz |
regcomp.h: Parenthesize param in macro expansion
This is always a good idea
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |