summaryrefslogtreecommitdiff
path: root/doop.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 /doop.c
parent10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff)
downloadperl-83003860610d4132632305aad5e79203998fbf38.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doop.c b/doop.c
index 98876d3fe6..a5dcc684dc 100644
--- a/doop.c
+++ b/doop.c
@@ -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))