summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-26 13:45:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-26 13:45:40 (GMT)
commita4154b246b048a378dd83998031d103263856c8f (patch)
tree521abd6a25b1866875951f26920b2643e0a4c778 /generic/tclCmdIL.c
parent14276a3feb131ef52ed60ccce8f66df43cdd98b2 (diff)
downloadtcl-a4154b246b048a378dd83998031d103263856c8f.zip
tcl-a4154b246b048a378dd83998031d103263856c8f.tar.gz
tcl-a4154b246b048a378dd83998031d103263856c8f.tar.bz2
Resolve a number of shadowed variables (discovered by compiling with -Wshadow)
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r--generic/tclCmdIL.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index a73a292..7e685bd 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -3729,7 +3729,7 @@ Tcl_LsortObjCmd(
sortInfo.isIncreasing = 1;
break;
case LSORT_INDEX: {
- int indexc;
+ int sortindex;
Tcl_Obj **indexv;
if (i == objc-2) {
@@ -3740,7 +3740,7 @@ Tcl_LsortObjCmd(
sortInfo.resultCode = TCL_ERROR;
goto done;
}
- if (TclListObjGetElements(interp, objv[i+1], &indexc,
+ if (TclListObjGetElements(interp, objv[i+1], &sortindex,
&indexv) != TCL_OK) {
sortInfo.resultCode = TCL_ERROR;
goto done;
@@ -3754,7 +3754,7 @@ Tcl_LsortObjCmd(
* options is done.
*/
- for (j=0 ; j<indexc ; j++) {
+ for (j=0 ; j<sortindex ; j++) {
int encoded = 0;
int result = TclIndexEncode(interp, indexv[j],
TCL_INDEX_BEFORE, TCL_INDEX_AFTER, &encoded);