summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-25 20:34:11 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-10 21:56:48 -0700
commit6102323a2ca31b7c760d9a3b81cb1d3e3d551206 (patch)
tree996fef86c65479c81a0fe7f50dc70f0ebd92978a /mg.c
parent2a57afb16e3315d9a0aaa4e79615282cf63c970d (diff)
downloadperl-6102323a2ca31b7c760d9a3b81cb1d3e3d551206.tar.gz
Assignment to array elem refs
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index ff5e47c3e3..8a4bf130f4 100644
--- a/mg.c
+++ b/mg.c
@@ -2480,6 +2480,10 @@ Perl_magic_setlvref(pTHX_ SV *sv, MAGIC *mg)
case SVt_PVGV:
gv_setref(mg->mg_obj, sv);
SvSETMAGIC(mg->mg_obj);
+ break;
+ case SVt_PVAV:
+ av_store((AV *)mg->mg_obj, SvIV((SV *)mg->mg_ptr),
+ SvREFCNT_inc_simple_NN(SvRV(sv)));
}
sv_unmagic(sv, PERL_MAGIC_lvref);
return 0;