From: Richard Levitte Date: Mon, 29 Apr 2002 10:30:34 +0000 (+0000) Subject: Fix unsigned vs. signed clash X-Git-Tag: OpenSSL_0_9_7-beta1~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=306009bb6a7f2f7e30de31552e611e61ee5b0157;p=oweals%2Fopenssl.git Fix unsigned vs. signed clash --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index f98202945e..1d9b30d78a 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -991,7 +991,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count, do { size_t num; - int r; + size_t r; r1 = BIO_ctrl_pending(io1); r2 = BIO_ctrl_get_write_guarantee(io2); @@ -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 */