A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.
[openssl.git] / crypto / rand / md_rand.c
index eeffc0df4cb3e9aaab348e776d249a32c15574eb..66b229c9b9cc5f73c461985577ce912d2edf39a7 100644 (file)
@@ -300,7 +300,7 @@ static void ssleay_rand_add(const void *buf, int num, double add)
         * other thread's seeding remains without effect (except for
         * the incremented counter).  By XORing it we keep at least as
         * much entropy as fits into md. */
-       for (k = 0; k < sizeof md; k++)
+       for (k = 0; k < (int)sizeof(md); k++)
                {
                md[k] ^= local_md[k];
                }