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 | 3f20caebd7ec420ed2589182dd2b63e1c233cc9d (patch) | |
tree | bf97f300ff97cf11727fc86c6de43751b823c6da /mg.c | |
parent | 515a5240775edd58e87afdd749fd9711b5ee53c8 (diff) | |
download | perl-3f20caebd7ec420ed2589182dd2b63e1c233cc9d.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24743
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,11 +263,11 @@ Perl_mg_length(pTHX_ SV *sv) } if (DO_UTF8(sv)) { - U8 *s = (U8*)SvPV(sv, len); + const U8 *s = (U8*)SvPV_const(sv, len); len = Perl_utf8_length(aTHX_ s, s + len); } else - (void)SvPV(sv, len); + (void)SvPV_const(sv, len); return len; } |