summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-29 12:54:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-29 12:54:40 (GMT)
commit471764d9aaacf13e9ca81573db9f4f5ec206885e (patch)
tree2a69cb8c7fd76845bdedb24f1a6a2022f042c664 /generic/tclRegexp.c
parent554f692cc41dac694d2cb30ec90b94b9f59df484 (diff)
downloadtcl-471764d9aaacf13e9ca81573db9f4f5ec206885e.zip
tcl-471764d9aaacf13e9ca81573db9f4f5ec206885e.tar.gz
tcl-471764d9aaacf13e9ca81573db9f4f5ec206885e.tar.bz2
More internal use of size_t
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index f793cb8..5df76c3 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.c
@@ -363,7 +363,7 @@ TclRegExpRangeUniChar(
* passed to Tcl_RegExpExec. */
size_t index, /* 0 means give the range of the entire match,
* > 0 means give the range of a matching
- * subrange, -1 means the range of the
+ * subrange, TCL_INDEX_NONE means the range of the
* rm_extend field. */
size_t *startPtr, /* Store address of first character in
* (sub-)range here. */
@@ -376,8 +376,8 @@ TclRegExpRangeUniChar(
*startPtr = regexpPtr->details.rm_extend.rm_so;
*endPtr = regexpPtr->details.rm_extend.rm_eo;
} else if (index + 1 > regexpPtr->re.re_nsub + 1) {
- *startPtr = -1;
- *endPtr = -1;
+ *startPtr = TCL_INDEX_NONE;
+ *endPtr = TCL_INDEX_NONE;
} else {
*startPtr = regexpPtr->matches[index].rm_so;
*endPtr = regexpPtr->matches[index].rm_eo;