summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-30 14:34:42 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-07-02 08:44:07 -0700
commitb4b0692a73a016eba05a78e6c2e9a5eae7862567 (patch)
treeadf964067eadc8a5d831710da0783d4ec3c19261 /pp_ctl.c
parent21dfaeec9eaa0c5068d6829b007077e6ca0d637a (diff)
downloadperl-b4b0692a73a016eba05a78e6c2e9a5eae7862567.tar.gz
Use find_runcv_where for pp_coreargs and pp_runcv
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 0fee02ac5f..75204b1fad 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3254,6 +3254,7 @@ Perl_find_runcv_where(pTHX_ U8 cond, void *arg, U32 *db_seqp)
{
dVAR;
PERL_SI *si;
+ int level = 0;
if (db_seqp)
*db_seqp = PL_curcop->cop_seq;
@@ -3276,6 +3277,9 @@ Perl_find_runcv_where(pTHX_ U8 cond, void *arg, U32 *db_seqp)
switch (cond) {
case FIND_RUNCV_root_eq:
if (CvROOT(cv) != (OP *)arg) continue;
+ return cv;
+ case FIND_RUNCV_level_eq:
+ if (level++ != (int)arg) continue;
/* GERONIMO! */
default:
return cv;