diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-17 17:26:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-01-17 17:26:37 (GMT) |
commit | c3bcd951b8dd8bf57202915b9d914bcddc73b9bb (patch) | |
tree | 9cab1970a2554690061d6b0cb437de08f09ffffa /generic/tclTest.c | |
parent | 01a48e2369782044a30d922c5f8ed52262ef4fcd (diff) | |
download | tcl-c3bcd951b8dd8bf57202915b9d914bcddc73b9bb.zip tcl-c3bcd951b8dd8bf57202915b9d914bcddc73b9bb.tar.gz tcl-c3bcd951b8dd8bf57202915b9d914bcddc73b9bb.tar.bz2 |
Possible fix for [e9a2715d91]: Tcl 8.6.11: Incompatible Tcl_GetRange()
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index ed016fe..8d22edf 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -3918,7 +3918,7 @@ TestregexpObjCmd( if (ii == -1) { TclRegExpRangeUniChar(regExpr, ii, &start, &end); newPtr = Tcl_GetRange(objPtr, start, end); - } else if (ii > info.nsubs) { + } else if (ii > info.nsubs || info.matches[ii].end <= 0) { newPtr = Tcl_NewObj(); } else { newPtr = Tcl_GetRange(objPtr, info.matches[ii].start, |