diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-27 19:04:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-27 19:04:01 (GMT) |
commit | c3d21eded52d256192df9f39ca7c3eda05545491 (patch) | |
tree | f353a02ef559036dddfdf72df86b108bccf4fe25 /generic/tclCmdAH.c | |
parent | 6a04722bd6c3603da8a9674d7a108d73358eddab (diff) | |
parent | 2d07a092e5512407f7e484e7a4f058bd31264c0a (diff) | |
download | tcl-c3d21eded52d256192df9f39ca7c3eda05545491.zip tcl-c3d21eded52d256192df9f39ca7c3eda05545491.tar.gz tcl-c3d21eded52d256192df9f39ca7c3eda05545491.tar.bz2 |
Merge 9.0
Diffstat (limited to 'generic/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 6 |
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; } } |