summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-05-10 16:03:13 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-05-10 16:03:13 (GMT)
commit08df07894566ad1a3cf2dc750ab9322761ee400f (patch)
tree620e18d988e661349d957eb09da1777d21f4b2f9 /generic/tclCmdIL.c
parent20baf86d1e03655bb6d7fae562091e95fe52db15 (diff)
parent313d238fb894ff0775f40ec5aee77627742a3b1b (diff)
downloadtcl-dgp_dup_encoding_fix.zip
tcl-dgp_dup_encoding_fix.tar.gz
tcl-dgp_dup_encoding_fix.tar.bz2
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",