summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmdsGR.c
diff options
context:
space:
mode:
authoraspect <aspect+tclcore@abstracted-spleen.org>2015-02-19 06:29:18 (GMT)
committeraspect <aspect+tclcore@abstracted-spleen.org>2015-02-19 06:29:18 (GMT)
commitbb005f26e422eead94be19f7b3a781bb64828aee (patch)
tree9cb4de7478016fb71cad253e51fe5ac11d28d3b6 /generic/tclCompCmdsGR.c
parentb8674e42d217b1b7ed6d7a1d89dc42a59902b108 (diff)
downloadtcl-bb005f26e422eead94be19f7b3a781bb64828aee.zip
tcl-bb005f26e422eead94be19f7b3a781bb64828aee.tar.gz
tcl-bb005f26e422eead94be19f7b3a781bb64828aee.tar.bz2
undo erroneous change in [1fa2e32e07]
Diffstat (limited to 'generic/tclCompCmdsGR.c')
-rw-r--r--generic/tclCompCmdsGR.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c
index e7f6473..b77c43c 100644
--- a/generic/tclCompCmdsGR.c
+++ b/generic/tclCompCmdsGR.c
@@ -1551,7 +1551,7 @@ TclCompileLreplaceCmd(
idx1 = 0;
goto replaceTail;
} else {
- if (idx1 >= 0 && idx2 > 0 && idx2 < idx1) {
+ if (idx1 > 0 && idx2 > 0 && idx2 < idx1) {
idx2 = idx1 - 1;
} else if (idx1 < 0 && idx2 < 0 && idx2 < idx1) {
idx2 = idx1 - 1;