summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2017-02-03 09:06:41 +0100
committerSteffen Mueller <smueller@cpan.org>2017-02-03 09:25:55 +0100
commit1186f82119d5270455d8831744d4f40a4ccbb222 (patch)
tree2c1f51da84c843e838ca3c35919b48c4257357a5 /dump.c
parentc9470cf1abc4cc21f63ba5222f7860ec1175adfc (diff)
downloadperl-1186f82119d5270455d8831744d4f40a4ccbb222.tar.gz
HvTOTALKEYS() takes a HV* as argument
Incidentally, it currently works on SV *'s as well because there's an explicit cast after an SvANY. Let's not rely on that. This commit also removes a pointless const in a cast. Again. It takes an HV * as argument. Let's only change that if we have a strong reason to.
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 9eb26bcc94..52b52cab08 100644
--- a/dump.c
+++ b/dump.c
@@ -1892,7 +1892,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
(UV)aux->xhv_aux_flags);
}
Perl_dump_indent(aTHX_ level, file, " ARRAY = 0x%" UVxf, PTR2UV(HvARRAY(sv)));
- usedkeys = HvUSEDKEYS(sv);
+ usedkeys = HvUSEDKEYS(MUTABLE_HV(sv));
if (HvARRAY(sv) && usedkeys) {
/* Show distribution of HEs in the ARRAY */
int freq[200];