From 04ad43af9ee27a102e75e1306c589501ded28731 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sat, 5 Oct 2002 11:59:51 +0000 Subject: [PATCH] Win32 fix (signed/unsigned compare error). --- crypto/engine/hw_cswift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.25.1