This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_length: use TARGi rather rather than sv_setiv()
authorDavid Mitchell <davem@iabyn.com>
Fri, 14 Jul 2017 08:47:58 +0000 (09:47 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Jul 2017 10:30:23 +0000 (11:30 +0100)
commit5b7508176e5e4ba4f0e051ad3d5cc45dbbe3ab24
tree84b31d4ecc75273fe4880cbdd1112490685aa2c5
parent7caeb7be934ab798a490d6205914121a6a935f01
pp_length: use TARGi rather rather than sv_setiv()

TARGi(i,1) is equivalent to sv_setiv_mg(TARG,i), except that it inlines
some simple common cases.

Also add a couple of test for length on an overloaded utf8 string.
I don't think it was being tested for properly.
lib/overload.t
pp.c