diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 22:22:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 22:22:34 +0000 |
commit | 83003860610d4132632305aad5e79203998fbf38 (patch) | |
tree | 497a18eeb83578cc89dec486a7afc3551246593b /regexec.c | |
parent | 10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff) | |
download | perl-83003860610d4132632305aad5e79203998fbf38.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) |