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 /doop.c | |
parent | 10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff) | |
download | perl-83003860610d4132632305aad5e79203998fbf38.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,8 +97,8 @@ S_do_trans_simple(pTHX_ SV *sv) STATIC I32 S_do_trans_count(pTHX_ SV *sv) { - U8 *s; - U8 *send; + const U8 *s; + const U8 *send; I32 matches = 0; STRLEN len; const I32 complement = PL_op->op_private & OPpTRANS_COMPLEMENT; @@ -107,7 +107,7 @@ S_do_trans_count(pTHX_ SV *sv) if (!tbl) Perl_croak(aTHX_ "panic: do_trans_count line %d",__LINE__); - s = (U8*)SvPV(sv, len); + s = (const U8*)SvPV_const(sv, len); send = s + len; if (!SvUTF8(sv)) |