This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
av_make: remove unnecessary AvFILLp assignment
authorRichard Leach <richardleach@users.noreply.github.com>
Mon, 2 Nov 2020 22:52:19 +0000 (22:52 +0000)
committerTony Cook <tony@develop-help.com>
Wed, 4 Nov 2020 00:27:29 +0000 (00:27 +0000)
commitf73391e47e605dbc951ddd9776e3c8c25686d2d7
tree90f3c536a12e0e4dd1aa6ecac7abd32228301390
parentb73caddf6779a7f7c36ca44e496b2b9498c657de
av_make: remove unnecessary AvFILLp assignment

av_make sets `AvFILLp(av)= -1;`, but will already have been set by `newAV()`,
via `newSV_type`'s call to `sv_upgrade`.

This PR also includes the minor cosmetic change of swapping in `newAV()`
in place of its expansion, seemingly the only occurrence of that in core.
av.c