diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-07 14:09:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-07 14:09:35 (GMT) |
commit | a1b2390c0ff1b013e377ddd81188f0125c3a2e83 (patch) | |
tree | f2dd6c841ac55cb4cc74fe20c887321394c8b20f /generic/regexec.c | |
parent | bd4765cf50cf1df6abe07db4cacd8fcae2e950c8 (diff) | |
download | tcl-a1b2390c0ff1b013e377ddd81188f0125c3a2e83.zip tcl-a1b2390c0ff1b013e377ddd81188f0125c3a2e83.tar.gz tcl-a1b2390c0ff1b013e377ddd81188f0125c3a2e83.tar.bz2 |
More usage of TCL_INDEX_NONE in stead of -1. More internal use of size_t, mainly in memory statistics (debug-mode only), and TCL_Z_MODIFIER. This gives broader memory statistics on win64.
Diffstat (limited to 'generic/regexec.c')
-rw-r--r-- | generic/regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/regexec.c b/generic/regexec.c index c57f42c..1a3e114 100644 --- a/generic/regexec.c +++ b/generic/regexec.c @@ -889,7 +889,7 @@ cbrdissect( MDEBUG(("cbackref n%d %d{%d-%d}\n", t->id, n, min, max)); /* get the backreferenced string */ - if (v->pmatch[n].rm_so == -1) { + if (v->pmatch[n].rm_so == TCL_INDEX_NONE) { return REG_NOMATCH; } brstring = v->start + v->pmatch[n].rm_so; |