This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't call HvHASKFLAGS_on() in S_hv_delete_common(). 19080/head
authorNicholas Clark <nick@ccl4.org>
Mon, 26 Jul 2021 13:10:30 +0000 (13:10 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 24 Aug 2021 14:00:16 +0000 (14:00 +0000)
commit3bbdecaa07f04ff3d6aecfe8b02e964ad9dc0fc7
treedb57f3519bfd711d1664bc27bac82d52ff3b75a9
parentfa9c4f83b98a97c3f1834e95d3c4e7e3e4a35292
Don't call HvHASKFLAGS_on() in S_hv_delete_common().

We're not changing any keys on the hash, so if it didn't have any keys with
flags before the delete, it won't have any afterwards either.

I added this line in Nov 2003 as part of commit cd6d36ac47e47079:
    Move the negative key -> utf8 flag conversion out to hv_delete

I don't think that it was correct then, and I don't think that it's correct
now.
hv.c