summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-19 16:05:15 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-19 16:30:39 -0800
commit82334630454b4b4e55257e3bf48f998a8a2814a9 (patch)
treeb81f353fabe8a3000578973d00d833e9905430cc /pp_sort.c
parent54408af452c3b8791b74227d549ac4a2d660d916 (diff)
downloadperl-82334630454b4b4e55257e3bf48f998a8a2814a9.tar.gz
Use GIMME_V in preference to GIMME
GIMME_V is a simpler macro that results in smaller machine code. GIMME does not distinguish between scalar and void context. The two instances of GIMME == G_SCALAR that I changed (which used to match void context too, but no longer do) are in code paths unreachable in void context, so we don’t need to check for it.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 75e58e7218..7a1d75d602 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -1476,7 +1476,7 @@ PP(pp_sort)
AV* av = NULL;
GV *gv;
CV *cv = NULL;
- I32 gimme = GIMME;
+ I32 gimme = GIMME_V;
OP* const nextop = PL_op->op_next;
I32 overloading = 0;
bool hasargs = FALSE;