This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: calc (width - elen) once
authorDavid Mitchell <davem@iabyn.com>
Wed, 10 May 2017 15:58:58 +0000 (16:58 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:00 +0000 (09:11 +0100)
commit3e41ecc92174a108aa69c527c9e59d41d45ed39b
tree6ae3e5f92df2593851969c00a1dbb9312fe08136
parent56b8b5fa015fb4447d1b1c18605edf654bd487ea
Perl_sv_vcatpvfn_flags: calc (width - elen) once

There's a couple of blocks of code which repeat the expression
(width - elen). Calculate this once at the top. This makes it slightly
easier to audit the code for signed/unsigned wrap etc.

Should be no functional change.
sv.c