diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-29 21:57:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-29 21:57:34 +0000 |
commit | ea726b52599b52cf534201a46ec3455418c9eb8e (patch) | |
tree | 4206fe1b3aea75154b82cac19301cc56345b63a4 /pp_hot.c | |
parent | 126f53f392147cb95f8643714b33fe373747680a (diff) | |
download | perl-ea726b52599b52cf534201a46ec3455418c9eb8e.tar.gz |
Add MUTABLE_CV(), and eliminate (CV *) casts in *.c.
p4raw-id: //depot/perl@34647
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2714,7 +2714,7 @@ PP(pp_entersub) SV * const * sp = &sv; /* Used in tryAMAGICunDEREF macro. */ tryAMAGICunDEREF(to_cv); } - cv = (CV*)SvRV(sv); + cv = MUTABLE_CV(SvRV(sv)); if (SvTYPE(cv) == SVt_PVCV) break; /* FALL THROUGH */ @@ -2723,7 +2723,7 @@ PP(pp_entersub) DIE(aTHX_ "Not a CODE reference"); /* This is the second most common case: */ case SVt_PVCV: - cv = (CV*)sv; + cv = MUTABLE_CV(sv); break; } |