summaryrefslogtreecommitdiff
path: root/myconfig.SH
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2020-01-31 15:34:48 +0100
committerYves Orton <demerphq@gmail.com>2020-01-31 15:37:45 +0100
commit2b301921ff7682e54ab74ad30dbf2ce1c9fc24b1 (patch)
treebe847e310a47167a95628f59deaf59c0d27639e8 /myconfig.SH
parent3eb35b099f783db0ec40f0ca9f20fd1666c54cdb (diff)
downloadperl-2b301921ff7682e54ab74ad30dbf2ce1c9fc24b1.tar.gz
pp_sort.c: fix fencepost error in call to av_extend()
In [rt.cpan.org #39196] issue #17496 there is a report that Tie::File produced spurious blank lines in the file after @tied= sort @tied; it turns out that this is because Tie::File treats EXTEND similarly to STORESIZE (which is arguably not entirely correct, but also not that weird) coupled with an off by one error in the calls to av_extend() in pp_sort. This patch fixes the fencepost error, adds some comments to av_extend() to make it clear what it is doing, and adds a test that EXTEND is called by this code with correct argument.
Diffstat (limited to 'myconfig.SH')
0 files changed, 0 insertions, 0 deletions