summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 21:16:13 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 21:16:13 +0000
commit10516c54a74630cf74b5f3650f62a47cae3b2ac0 (patch)
treebf97f300ff97cf11727fc86c6de43751b823c6da /doop.c
parent245d4a47e185d4e38ca6440eb62ae19d5e411fd1 (diff)
downloadperl-10516c54a74630cf74b5f3650f62a47cae3b2ac0.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24743
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index d7ab071e84..98876d3fe6 100644
--- a/doop.c
+++ b/doop.c
@@ -605,7 +605,7 @@ Perl_do_trans(pTHX_ SV *sv)
if (SvREADONLY(sv) && !(PL_op->op_private & OPpTRANS_IDENTICAL))
Perl_croak(aTHX_ PL_no_modify);
}
- (void)SvPV(sv, len);
+ (void)SvPV_const(sv, len);
if (!len)
return 0;
if (!(PL_op->op_private & OPpTRANS_IDENTICAL)) {
@@ -717,7 +717,7 @@ UV
Perl_do_vecget(pTHX_ SV *sv, I32 offset, I32 size)
{
STRLEN srclen, len;
- unsigned char *s = (unsigned char *) SvPV(sv, srclen);
+ const unsigned char *s = (const unsigned char *) SvPV_const(sv, srclen);
UV retnum = 0;
if (offset < 0)