This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: handle Inf/Nan in 1 place
authorDavid Mitchell <davem@iabyn.com>
Tue, 16 May 2017 07:53:19 +0000 (08:53 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:01 +0000 (09:11 +0100)
commit5a5fe90db443ad067e76362e551375647b619ab9
treeb92f9dc17072ee10cc205437a1027bbc04e68219
parentd7ce3e216e4fc097060b79ddfd1cc497e74d21ad
Perl_sv_vcatpvfn_flags: handle Inf/Nan in 1 place

At the start of the float section, check whether the value if Inf/Nan
and handle directly. This stops later blocks of code having to test for it
too. Also simplify the formatting of Inf/Nan - let the general code at the
end of the block do any pre/post padding.
sv.c