This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: %p and Inf/Nan
authorDavid Mitchell <davem@iabyn.com>
Fri, 26 May 2017 15:05:18 +0000 (16:05 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:04 +0000 (09:11 +0100)
commit84a826ef51fc3a38e04ab298d0f2942feeb4754e
treee119836bab12299b4098e1f5cad33595c6059279
parent5f7104e27bf393e7a375da488b5653e69e55d8da
Perl_sv_vcatpvfn_flags: %p and Inf/Nan

sprintf("%p", 0+Inf) should print the address of an SV, not the literal
string "Inf". Ditto NaN.

Similarly, sprintf("%p", $x) should print the address of the $x SV,
not triggering a tie fetch or overload method call, nor using the address
of any SV returned by such calls.
sv.c
t/op/infnan.t
t/op/sprintf2.t
t/op/tie_fetch_count.t