summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 22:22:34 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 22:22:34 +0000
commit83003860610d4132632305aad5e79203998fbf38 (patch)
tree497a18eeb83578cc89dec486a7afc3551246593b /pp_sort.c
parent10516c54a74630cf74b5f3650f62a47cae3b2ac0 (diff)
downloadperl-83003860610d4132632305aad5e79203998fbf38.tar.gz
More SvPV consting
p4raw-id: //depot/perl@24744
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 203b55d841..03ab0e5afc 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -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);
}
}
}