summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-11-14 16:21:42 +0000
committerDavid Mitchell <davem@iabyn.com>2012-06-13 13:25:52 +0100
commit9ef2bcf6613fe182cb58be5a0cab64a9d4084b48 (patch)
treee608927f7b1f9c5e10ea3121c86d870a90add936
parent346d3070ad0aa2f924e07bfdde6bb8809da64e45 (diff)
downloadperl-9ef2bcf6613fe182cb58be5a0cab64a9d4084b48.tar.gz
pp_regcomp(): fix casting issue from prev commit
-rw-r--r--pp_ctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index b40733ff90..1e23a7a3c8 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -117,7 +117,8 @@ PP(pp_regcomp)
&is_bare_re,
(pm->op_pmflags & (RXf_PMf_COMPILETIME|PMf_HAS_CV)));
if (pm->op_pmflags & PMf_HAS_CV)
- ((struct regexp *)SvANY(new_re))->qr_anoncv = PAD_SV(PL_op->op_targ);
+ ((struct regexp *)SvANY(new_re))->qr_anoncv
+ = (CV*) PAD_SV(PL_op->op_targ);
if (is_bare_re) {
REGEXP *tmp;