summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-08-03 19:25:30 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-03 23:40:37 +0000
commit4b2cff9afa2c02937e1460d801fda356385d3841 (patch)
treefb2ccd078536f7ff30909684dc3dc6aecd3b4635 /regcomp.c
parent659239a4cd11b2ba8db82db8b10f3ce574b1b819 (diff)
downloadperl-4b2cff9afa2c02937e1460d801fda356385d3841.tar.gz
[ID 20000803.001] further regexp counting problems
Message-Id: <200008031725.SAA10580@crypt.compulink.co.uk> p4raw-id: //depot/perl@6508
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index a15eb233de..f092e7e4c3 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -904,6 +904,8 @@ S_study_chunk(pTHX_ regnode **scanp, I32 *deltap, regnode *last, scan_data_t *da
} else {
/* start offset must point into the last copy */
data->last_start_min += minnext * (mincount - 1);
+ data->last_start_max += is_inf ? 0 : (maxcount - 1)
+ * (minnext + data->pos_delta);
}
}
/* It is counted once already... */