summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 22:22:34 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 22:22:34 +0000
commit83003860610d4132632305aad5e79203998fbf38 (patch)
tree497a18eeb83578cc89dec486a7afc3551246593b /regexec.c
parent10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff)
downloadperl-83003860610d4132632305aad5e79203998fbf38.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index fae084e061..e727ba9c3b 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3248,7 +3248,7 @@ S_regmatch(pTHX_ regnode *prog)
}
else {
STRLEN len;
- char *t = SvPV(ret, len);
+ const char *t = SvPV_const(ret, len);
PMOP pm;
char * const oprecomp = PL_regprecomp;
const I32 osize = PL_regsize;
@@ -3256,7 +3256,7 @@ S_regmatch(pTHX_ regnode *prog)
Zero(&pm, 1, PMOP);
if (DO_UTF8(ret)) pm.op_pmdynflags |= PMdf_DYN_UTF8;
- re = CALLREGCOMP(aTHX_ t, t + len, &pm);
+ re = CALLREGCOMP(aTHX_ (char*)t, (char*)t + len, &pm);
if (!(SvFLAGS(ret)
& (SVs_TEMP | SVs_PADTMP | SVf_READONLY
| SVs_GMG)))