Commit 04ad43af authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Win32 fix (signed/unsigned compare error).

parent 227aec9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.