summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-27 19:04:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-27 19:04:01 (GMT)
commitc3d21eded52d256192df9f39ca7c3eda05545491 (patch)
treef353a02ef559036dddfdf72df86b108bccf4fe25 /generic/tclCmdAH.c
parent6a04722bd6c3603da8a9674d7a108d73358eddab (diff)
parent2d07a092e5512407f7e484e7a4f058bd31264c0a (diff)
downloadtcl-c3d21eded52d256192df9f39ca7c3eda05545491.zip
tcl-c3d21eded52d256192df9f39ca7c3eda05545491.tar.gz
tcl-c3d21eded52d256192df9f39ca7c3eda05545491.tar.bz2
Merge 9.0
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r--generic/tclCmdAH.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index d58b92c..792142b 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.c
@@ -2474,9 +2474,9 @@ EachloopCmd(
int objc, /* The arguments being passed in... */
Tcl_Obj *const objv[])
{
- int numLists = (objc-2) / 2;
+ size_t i, j, numLists = (objc-2) / 2;
struct ForeachState *statePtr;
- int i, j, result;
+ int result;
if (objc < 4 || (objc%2 != 0)) {
Tcl_WrongNumArgs(interp, 1, objv,
@@ -2558,7 +2558,7 @@ EachloopCmd(
if ((statePtr->argcList[i] % statePtr->varcList[i]) != 0) {
j++;
}
- if (j > statePtr->maxj) {
+ if (j > (size_t)statePtr->maxj) {
statePtr->maxj = j;
}
}