projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
More admonishment that one shouldn't waste one's efforts
[p5sagit/p5-mst-13.2.git]
/
regexec.c
diff --git
a/regexec.c
b/regexec.c
index
389fa1d
..
4f403a0
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-3990,7
+3990,9
@@
S_regrepeat(pTHX_ regnode *p, I32 max)
register bool do_utf8 = PL_reg_match_utf8;
scan = PL_reginput;
- if (max != REG_INFTY && max < loceol - scan)
+ if (max == REG_INFTY)
+ max = I32_MAX;
+ else if (max < loceol - scan)
loceol = scan + max;
switch (OP(p)) {
case REG_ANY: