diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 21:16:13 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 21:16:13 +0000 |
commit | 10516c54a74630cf74b5f3650f62a47cae3b2ac0 (patch) | |
tree | bf97f300ff97cf11727fc86c6de43751b823c6da /doop.c | |
parent | 245d4a47e185d4e38ca6440eb62ae19d5e411fd1 (diff) | |
download | perl-10516c54a74630cf74b5f3650f62a47cae3b2ac0.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24743
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |