summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-06 08:20:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-06 08:20:11 (GMT)
commit040a8faa610cef27ea30d4f3781eae7cda6b1258 (patch)
tree38912c3b4c43a99b304d8e262fe54b1b1e2ce140 /generic/tclRegexp.c
parentf86f9cf5f2da6809f0747865b3b13cba13d23fa0 (diff)
parentbd4765cf50cf1df6abe07db4cacd8fcae2e950c8 (diff)
downloadtcl-040a8faa610cef27ea30d4f3781eae7cda6b1258.zip
tcl-040a8faa610cef27ea30d4f3781eae7cda6b1258.tar.gz
tcl-040a8faa610cef27ea30d4f3781eae7cda6b1258.tar.bz2
Merge 8.7, and add some more usage of TCL_INDEX_NONE/TCL_AUTO_LENGTH
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index 5df76c3..53241ef 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.c
@@ -264,7 +264,7 @@ Tcl_RegExpRange(
if (index > regexpPtr->re.re_nsub) {
*startPtr = *endPtr = NULL;
- } else if (regexpPtr->matches[index].rm_so == (size_t)-1) {
+ } else if (regexpPtr->matches[index].rm_so == TCL_INDEX_NONE) {
*startPtr = *endPtr = NULL;
} else {
if (regexpPtr->objPtr) {