diff options
author | David Mitchell <davem@iabyn.com> | 2015-10-15 08:52:18 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-02-03 08:59:42 +0000 |
commit | 72c5b62dfd0d91a02743d4b2fe0d8b8d04488753 (patch) | |
tree | ab70f9c19e0a6573fa52c93bc9d0874882ae2849 /pp_sort.c | |
parent | dd748f4511ead9174b04b875630d7947834c9ed1 (diff) | |
download | perl-72c5b62dfd0d91a02743d4b2fe0d8b8d04488753.tar.gz |
pp_sort: add missing CX_LEAVE_SCOPE()
The branch that does POPSUB has an implicit CX_LEAVE_SCOPE; the
other branch didn't; do add one for consistency. It's fairly harmless,
as pp_sort shortly afterwards does a LEAVE() anyway.
Also add an assertion to POPBLOCK that the save stack has been popped;
this is how I discovered the sort issue in the first place.
Diffstat (limited to 'pp_sort.c')
-rw-r--r-- | pp_sort.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1718,6 +1718,7 @@ PP(pp_sort) else assert(CxTYPE(cx) == CXt_NULL); /* mimic POPSUB */ + CX_LEAVE_SCOPE(cx); PL_tmps_floor = cx->cx_u.cx_blk.blku_old_tmpsfloor; POPBLOCK(cx); |