diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 918aabe4d5..1d9b30d78a 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -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 */