From: Dr. Stephen Henson Date: Sat, 5 Oct 2002 11:59:51 +0000 (+0000) Subject: Win32 fix (signed/unsigned compare error). X-Git-Tag: OpenSSL_0_9_7-beta4~147 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04ad43af9ee27a102e75e1306c589501ded28731;p=oweals%2Fopenssl.git Win32 fix (signed/unsigned compare error). --- diff --git a/crypto/engine/hw_cswift.c b/crypto/engine/hw_cswift.c index 31b6250dd0..36b59b165f 100644 --- a/crypto/engine/hw_cswift.c +++ b/crypto/engine/hw_cswift.c @@ -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.