diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-06 09:07:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-06 09:07:44 (GMT) |
commit | 1ad7ab1f6f151e6674d2476d2ab635997752ef95 (patch) | |
tree | 8a23748849337838554e197c6caa21f18b5e346d /generic | |
parent | 8bdd215c81ab0ef9f8c3f02a41030de71fab794b (diff) | |
download | tcl-1ad7ab1f6f151e6674d2476d2ab635997752ef95.zip tcl-1ad7ab1f6f151e6674d2476d2ab635997752ef95.tar.gz tcl-1ad7ab1f6f151e6674d2476d2ab635997752ef95.tar.bz2 |
Fix [57daa91ea]: Tcl_GetIntForIndex handling of n-m (m > n). With testcases.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclUtil.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 9c1bb93..0119243 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -3972,8 +3972,6 @@ GetEndOffsetFromObj( if (offset == WIDE_MAX) { *widePtr = (endValue == -1) ? WIDE_MAX : endValue + 1; - } else if (offset == WIDE_MIN) { - *widePtr = -1; } else if (endValue == -1) { *widePtr = offset; } else if (offset < 0) { |