summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 71faec01fc..4dc8f20719 100644
--- a/pp.c
+++ b/pp.c
@@ -4829,9 +4829,9 @@ PP(pp_anonlist)
PP(pp_anonhash)
{
dVAR; dSP; dMARK; dORIGMARK;
- HV* const hv = (HV *)sv_2mortal((SV *)newHV());
+ HV* const hv = newHV();
SV* const retval = sv_2mortal( PL_op->op_flags & OPf_SPECIAL
- ? newRV_inc(MUTABLE_SV(hv))
+ ? newRV_noinc(MUTABLE_SV(hv))
: MUTABLE_SV(hv) );
while (MARK < SP) {