summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-10-28 20:12:16 +0000
committerNicholas Clark <nick@ccl4.org>2008-10-28 20:12:16 +0000
commit3cb1dbc621ea6bcc05f2289da05ca9883cc40ef1 (patch)
treebb3ff783d8f59d41734d02671bd75ec2b25cf31f /toke.c
parentc6903450838086ba02cb3a4b04bd5f6047187b9d (diff)
downloadperl-3cb1dbc621ea6bcc05f2289da05ca9883cc40ef1.tar.gz
Two casts that are MUTABLE_?V.
p4raw-id: //depot/perl@34622
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index aa4bfafa26..7b11deff67 100644
--- a/toke.c
+++ b/toke.c
@@ -902,8 +902,8 @@ S_incline(pTHX_ const char *s)
gv_init(gv2, PL_defstash, tmpbuf2, tmplen2, FALSE);
/* adjust ${"::_<newfilename"} to store the new file name */
GvSV(gv2) = newSVpvn(tmpbuf2 + 2, tmplen2 - 2);
- GvHV(gv2) = (HV*)SvREFCNT_inc(GvHV(*gvp));
- GvAV(gv2) = (AV*)SvREFCNT_inc(GvAV(*gvp));
+ GvHV(gv2) = MUTABLE_HV(SvREFCNT_inc(GvHV(*gvp)));
+ GvAV(gv2) = MUTABLE_AV(SvREFCNT_inc(GvAV(*gvp)));
}
if (tmpbuf2 != smallbuf) Safefree(tmpbuf2);