develooper Front page | perl.perl5.porters | Postings from March 2023

Re: unparenthesised macro expansions

Thread Previous
From:
demerphq
Date:
March 7, 2023 07:08
Subject:
Re: unparenthesised macro expansions
Message ID:
CANgJU+WSJhBeH4-dRm+4yYrMRazSkSteBSzvZtLKJP=MEJuTNw@mail.gmail.com
On Tue, 7 Mar 2023 at 01:10, Zefram via perl5-porters
<perl5-porters@perl.org> wrote:
>
> I see that one of the definitions each of Perl_isfinite(), Perl_isinf(),
> and Perl_isfinitel() in perl.h, and the definition of SvPADMY() in sv.h,
> have a potential precedence problem.  Their expansions take the form
> "!(...)", and so are vulnerable to being broken up by postfix operators.
> Each of these expansions should have a pair of enclosing parens added.

PR pushed as https://github.com/Perl/perl5/pull/20909

Thanks for the report.

Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About