X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c6940f12e2ad6ba778324f50b9a779db36238518..62ddb51e0424dd4bd1098b024f2427959aefc729:/ssharcf.c diff --git a/ssharcf.c b/ssharcf.c index 2381d887..6bfbd895 100644 --- a/ssharcf.c +++ b/ssharcf.c @@ -19,7 +19,7 @@ static void arcfour_block(void *handle, unsigned char *blk, int len) s = ctx->s; i = ctx->i; j = ctx->j; - for (k = 0; k < len; k++) { + for (k = 0; (int)k < len; k++) { i = (i + 1) & 0xff; j = (j + s[i]) & 0xff; tmp = s[i]; s[i] = s[j]; s[j] = tmp;