]> err.no Git - yubikey-personalization/commitdiff
let loop variable be size_t as we're comparing with size_t
authorKlas Lindfors <klas@yubico.com>
Thu, 25 Oct 2012 16:56:15 +0000 (18:56 +0200)
committerKlas Lindfors <klas@yubico.com>
Thu, 25 Oct 2012 16:57:25 +0000 (18:57 +0200)
ykpbkdf2.c

index e64d582fd0c66acd6a3b0507bf3ee400c7dbbef4..1b0ce0c79a864d63b8f1d30721efe003e9363921 100644 (file)
@@ -68,7 +68,7 @@ int yk_pbkdf2(const char *passphrase,
                unsigned char block[256]; /* A big chunk, that's 2048 bits */
                size_t block_len;
                unsigned int iteration;
-               int i;
+               size_t i;
 
                memcpy(block, salt, salt_len);
                block[salt_len + 0] = (block_count & 0xff000000) >> 24;