From b1b5a4ae28189de4ce324e4b00842813774490c0 Mon Sep 17 00:00:00 2001 From: Vincent Pit Date: Mon, 27 Jun 2011 09:37:30 +0200 Subject: In leavewhen, put the SP back when returning It may have changed in adjust_stack_on_leave() if the stack needed to be extended. --- pp_ctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pp_ctl.c b/pp_ctl.c index c442d0bf7e..c5cf973df4 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -4998,8 +4998,7 @@ PP(pp_leavewhen) return cx->blk_loop.my_op->op_nextop; } else - /* RETURNOP calls PUTBACK which restores the old old sp */ - return cx->blk_givwhen.leave_op; + RETURNOP(cx->blk_givwhen.leave_op); } PP(pp_continue) -- cgit v1.2.1