summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-27 18:29:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-27 18:29:55 (GMT)
commit2d07a092e5512407f7e484e7a4f058bd31264c0a (patch)
treee4d3a3b07caab1a7f4229e7bb7ad638e3cbff848 /generic/tclCmdAH.c
parentf2e56cab06bb6e9e9aeea7e59db993350c99a997 (diff)
downloadtcl-2d07a092e5512407f7e484e7a4f058bd31264c0a.zip
tcl-2d07a092e5512407f7e484e7a4f058bd31264c0a.tar.gz
tcl-2d07a092e5512407f7e484e7a4f058bd31264c0a.tar.bz2
More size_t usage, e.g. for "foreach"
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 9bab9bf..00bcdff 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;
}
}