summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-03-30 08:46:43 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-03-30 08:46:43 (GMT)
commitdedc1d86a28c562377215bc2d0bf10e75ed00f1d (patch)
tree467dbf26f505d4f42a10c904b24b552022631320 /generic/tclCmdIL.c
parente586c259bcbae989eca56b696377488dfe656b20 (diff)
downloadtcl-dedc1d86a28c562377215bc2d0bf10e75ed00f1d.zip
tcl-dedc1d86a28c562377215bc2d0bf10e75ed00f1d.tar.gz
tcl-dedc1d86a28c562377215bc2d0bf10e75ed00f1d.tar.bz2
[47ac84309b] Import of aspect's branch from his personal repository on chiselapp.aspect_lreplace_cleanup
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 739dca9..0d35397 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -2755,7 +2755,7 @@ Tcl_LreplaceObjCmd(
* (to allow for replacing the last elem).
*/
- if ((first >= listLen) && (listLen > 0)) {
+ if ((first > listLen) && (listLen > 0)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"list doesn't contain element %s", TclGetString(objv[2])));
Tcl_SetErrorCode(interp, "TCL", "OPERATION", "LREPLACE", "BADIDX",