diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 22:22:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 22:22:34 +0000 |
commit | 83003860610d4132632305aad5e79203998fbf38 (patch) | |
tree | 497a18eeb83578cc89dec486a7afc3551246593b /pp_sort.c | |
parent | 10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff) | |
download | perl-83003860610d4132632305aad5e79203998fbf38.tar.gz |
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'pp_sort.c')
-rw-r--r-- | pp_sort.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1526,8 +1526,7 @@ PP(pp_sort) else { cv = sv_2cv(*++MARK, &stash, &gv, 0); if (cv && SvPOK(cv)) { - STRLEN n_a; - char *proto = SvPV((SV*)cv, n_a); + char *proto = SvPV_nolen((SV*)cv); if (proto && strEQ(proto, "$$")) { hasargs = TRUE; } @@ -1620,11 +1619,11 @@ PP(pp_sort) } else { if (!SvPOK(*p1)) { - STRLEN n_a; if (SvAMAGIC(*p1)) overloading = 1; else - (void)sv_2pv(*p1, &n_a); + (void)sv_2pv_flags(*p1, 0, + SV_GMAGIC|SV_CONST_RETURN); } } } |