diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2016-03-30 08:46:43 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2016-03-30 08:46:43 (GMT) |
commit | dedc1d86a28c562377215bc2d0bf10e75ed00f1d (patch) | |
tree | 467dbf26f505d4f42a10c904b24b552022631320 /generic/tclCmdIL.c | |
parent | e586c259bcbae989eca56b696377488dfe656b20 (diff) | |
download | tcl-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.c | 2 |
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", |