This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce macro PERL_MAX_SUB_DEPTH
[perl5.git]
/
pp_ctl.c
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
07f8504
..
564e437
100644
(file)
--- a/
pp_ctl.c
+++ b/
pp_ctl.c
@@
-2427,7
+2427,7
@@
PP(pp_goto)
if (CvDEPTH(cv) < 2)
SvREFCNT_inc_simple_void_NN(cv);
else {
- if (CvDEPTH(cv) ==
100
&& ckWARN(WARN_RECURSION))
+ if (CvDEPTH(cv) ==
PERL_MAX_SUB_DEPTH
&& ckWARN(WARN_RECURSION))
sub_crush_depth(cv);
pad_push(padlist, CvDEPTH(cv));
}