In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/011b14198fc5811dd92fb76a67d13a59cb356151?hp=fcacab092a228584cf41a5e138ee2cd7111cd5df>
- Log ----------------------------------------------------------------- commit 011b14198fc5811dd92fb76a67d13a59cb356151 Author: Karl Williamson <[email protected]> Date: Sun Mar 31 13:50:09 2019 -0600 handy.h: Parenthesize formal parameters in macro defn These should be parenthesized to prevent issues when called with an expression. ----------------------------------------------------------------------- Summary of changes: handy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handy.h b/handy.h index cb6da9fd84..edc01075d5 100644 --- a/handy.h +++ b/handy.h @@ -260,7 +260,7 @@ typedef U64TYPE U64; * If not, subtracting 1 would leave the uppermost bit set, so the & would * yield non-zero */ #if defined(PERL_CORE) || defined(PERL_EXT) -# define isPOWER_OF_2(n) (n && (n & (n-1)) == 0) +# define isPOWER_OF_2(n) ((n) && ((n) & ((n)-1)) == 0) #endif /* This is a helper macro to avoid preprocessor issues, replaced by nothing -- Perl5 Master Repository
