Win32 fix (signed/unsigned compare error).
authorDr. Stephen Henson <steve@openssl.org>
Sat, 5 Oct 2002 11:59:51 +0000 (11:59 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 5 Oct 2002 11:59:51 +0000 (11:59 +0000)
crypto/engine/hw_cswift.c

index 31b6250dd0a2e07b1fea70efc6c76caf6ebddf26..36b59b165fadc8eb9f9955b3477c442c417a2b51 100644 (file)
@@ -938,7 +938,7 @@ static int cswift_rand_bytes(unsigned char *buf, int num)
        }
        acquired = 1;
 
-       while (nbytes < num)
+       while (nbytes < (size_t)num)
        {
                /* tell CryptoSwift how many bytes we want and where we want it.
                 * Note: - CryptoSwift cannot do more than 4096 bytes at a time.