]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
Fix compiler warnings.
authorJilles Tjoelker <redacted>
Sat, 8 Jan 2011 16:40:12 +0000 (17:40 +0100)
committerJilles Tjoelker <redacted>
Sat, 8 Jan 2011 16:40:12 +0000 (17:40 +0100)
libratbox/src/crypt.c

index 54dca3b9bdd9992fbf74a3b3bfedebee89ea993e..6123d12b5adccf6dd8d5773ad8669da9495a85a0 100644 (file)
@@ -1586,7 +1586,7 @@ static char *rb_sha256_crypt_r(const char *key, const char *salt, char *buffer,
        rb_sha256_init_ctx(&alt_ctx);
 
        /* For every character in the password add the entire password.  */
-       for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
+       for (cnt = 0; cnt < (size_t)(16 + alt_result[0]); ++cnt)
                rb_sha256_process_bytes(salt, salt_len, &alt_ctx);
 
        /* Finish the digest.  */
@@ -2162,7 +2162,7 @@ static char *rb_sha512_crypt_r(const char *key, const char *salt, char *buffer,
        rb_sha512_init_ctx(&alt_ctx);
 
        /* For every character in the password add the entire password.  */
-       for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt)
+       for (cnt = 0; cnt < (size_t)(16 + alt_result[0]); ++cnt)
                rb_sha512_process_bytes(salt, salt_len, &alt_ctx);
 
        /* Finish the digest.  */