diff options
author | Steffen Mueller <smueller@cpan.org> | 2017-02-03 09:06:41 +0100 |
---|---|---|
committer | Steffen Mueller <smueller@cpan.org> | 2017-02-03 09:25:55 +0100 |
commit | 1186f82119d5270455d8831744d4f40a4ccbb222 (patch) | |
tree | 2c1f51da84c843e838ca3c35919b48c4257357a5 /dump.c | |
parent | c9470cf1abc4cc21f63ba5222f7860ec1175adfc (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |