Front page | perl.perl5.porters |
Postings from March 2020
Re: chained comparisons
Thread Previous
|
Thread Next
From:
Zefram via perl5-porters
Date:
March 27, 2020 20:01
Subject:
Re: chained comparisons
Message ID:
20200327200059.wrb7bwpdxkpqahrt@fysh.org
James E Keenan wrote:
>https://github.com/Perl/perl5/issues/17664#issuecomment-605227883
Looks like that depends on the number of opcodes, not on any details of
the opcodes. Specifically the number of opcodes mod 8, which by chance
with the chained comparison patch has become zero. The value zero for the
resulting constant, reported by the warning, is in fact the desired value.
In general the code is correct (given the -fwrapv option). The warning
should be silenced by adding some explicit casting.
-zefram
Thread Previous
|
Thread Next