summaryrefslogtreecommitdiffstats
path: root/generic/regexec.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-01-26 20:47:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-01-26 20:47:23 (GMT)
commitedce4263d79bad62b9c06d66bab9ac954cafb6df (patch)
treeca68e9a149fa7113ff56a0689c9d0cfbfa1633a6 /generic/regexec.c
parent02bc90d8c7191b4819492e5bf0667a5cb384a645 (diff)
downloadtcl-edce4263d79bad62b9c06d66bab9ac954cafb6df.zip
tcl-edce4263d79bad62b9c06d66bab9ac954cafb6df.tar.gz
tcl-edce4263d79bad62b9c06d66bab9ac954cafb6df.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 205fcc2..f3be137 100644
--- a/generic/regexec.c
+++ b/generic/regexec.c
@@ -1117,7 +1117,7 @@ cbrdissect(
*/
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;
}
@@ -1132,7 +1132,7 @@ cbrdissect(
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 */