diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
commit | 5c144d81801caa5e8317f6a38b40eb08257c47ea (patch) | |
tree | 41bde5ec37960016aa4c6ad2357049096f4caebb /pp_pack.c | |
parent | 9cbe880bef86d6a2a18d2671579498840ffb8162 (diff) | |
download | perl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz |
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2275,8 +2275,8 @@ PP(pp_unpack) I32 gimme = GIMME_V; STRLEN llen; STRLEN rlen; - const char *pat = SvPV(left, llen); - const char *s = SvPV(right, rlen); + const char *pat = SvPV_const(left, llen); + const char *s = SvPV_const(right, rlen); const char *strend = s + rlen; const char *patend = pat + llen; I32 cnt; @@ -3603,7 +3603,7 @@ PP(pp_pack) dSP; dMARK; dORIGMARK; dTARGET; register SV *cat = TARG; STRLEN fromlen; - register const char *pat = SvPVx(*++MARK, fromlen); + register const char *pat = SvPVx_const(*++MARK, fromlen); register const char *patend = pat + fromlen; MARK++; |