fix warning: comparison between signed and unsigned integer

This commit is contained in:
Karel Miko 2017-06-11 10:12:18 +02:00
parent 532c511f52
commit 71884788e3

View File

@ -141,7 +141,7 @@ int dh_make_key(prng_state *prng, int wprng, int groupsize, dh_key *key)
}
/* find key size */
for (x = 0; (keysize > sets[x].size) && (sets[x].size != 0); x++);
for (x = 0; ((int)keysize > sets[x].size) && (sets[x].size != 0); x++);
if (sets[x].size == 0) {
return CRYPT_INVALID_KEYSIZE;
}