]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssharcf.c
Merge r9343 (the new 'pre-release' version type).
[PuTTY.git] / ssharcf.c
index 2381d8870251a422dff31e9a29e246f71850b278..6bfbd8959531ee63a5524b22542454aba0d8a8e0 100644 (file)
--- 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;