summaryrefslogtreecommitdiffstats
path: root/generic/regexec.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-01-26 20:56:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-01-26 20:56:01 (GMT)
commit8c3b65404122b4ebf39db0dc500da65fca99e1d5 (patch)
tree277724a1f215e38aae8c3ece7c958ba6fecdda63 /generic/regexec.c
parenta3b402c305bb7a8126ec53b12db5b9a1e6b9e585 (diff)
parentedce4263d79bad62b9c06d66bab9ac954cafb6df (diff)
downloadtcl-8c3b65404122b4ebf39db0dc500da65fca99e1d5.zip
tcl-8c3b65404122b4ebf39db0dc500da65fca99e1d5.tar.gz
tcl-8c3b65404122b4ebf39db0dc500da65fca99e1d5.tar.bz2
Fix [df08482b042a16007f256bfbaaacfbe0def01074|df08482b04]: Double defined INFINITY in regguts.h
Diffstat (limited to 'generic/regexec.c')
-rw-r--r--generic/regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regexec.c b/generic/regexec.c
index ad4b6e6..3b9af3e 100644
--- a/generic/regexec.c
+++ b/generic/regexec.c
@@ -1122,7 +1122,7 @@ complicatedBackrefDissect(
*/
i = 0;
- for (p = begin; p <= stop && (i < max || max == INFINITY); p += len) {
+ for (p = begin; p <= stop && (i < max || max == DUPINF); p += len) {
if (v->g->compare(paren, p, len) != 0) {
break;
}
@@ -1137,7 +1137,7 @@ complicatedBackrefDissect(
if (p != end) { /* didn't consume all of it */
return REG_NOMATCH;
}
- if (min <= i && (i <= max || max == INFINITY)) {
+ if (min <= i && (i <= max || max == DUPINF)) {
return REG_OKAY;
}
return REG_NOMATCH; /* out of range */