diff options
author | David Mitchell <davem@iabyn.com> | 2010-04-13 11:00:30 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-04-13 11:00:30 +0100 |
commit | daeb922a13767cdbdeac0ab09127e170558c9798 (patch) | |
tree | f8ea1c4f6e8778842dbdb1903e0cc7f7f6caff58 /scope.c | |
parent | c6c7b90fcde27746dffdfc8e113330e65d1a3365 (diff) | |
download | perl-daeb922a13767cdbdeac0ab09127e170558c9798.tar.gz |
fix minor casting issue
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -619,7 +619,7 @@ Perl_save_aelem_flags(pTHX_ AV *av, I32 idx, SV **sptr, const U32 flags) * won't actually be stored in the array - so it won't get * reaped when the localize ends. Ensure it gets reaped by * mortifying it instead. DAPM */ - if (SvTIED_mg(av, PERL_MAGIC_tied)) + if (SvTIED_mg((const SV *)av, PERL_MAGIC_tied)) sv_2mortal(sv); } @@ -645,7 +645,7 @@ Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags) * won't actually be stored in the hash - so it won't get * reaped when the localize ends. Ensure it gets reaped by * mortifying it instead. DAPM */ - if (SvTIED_mg(hv, PERL_MAGIC_tied)) + if (SvTIED_mg((const SV *)hv, PERL_MAGIC_tied)) sv_2mortal(sv); } |