Fix unsigned vs. signed clash

This commit is contained in:
Richard Levitte 2002-04-29 10:29:38 +00:00
parent 9738f395c6
commit cc12975514

View File

@ -1055,7 +1055,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
r = BIO_nwrite0(io1, &dataptr);
assert(r > 0);
if (r < num)
if (r < (int)num)
num = r;
r = BIO_read(io2, dataptr, (int)num);
if (r != (int)num) /* can't happen */