Fix unsigned vs. signed clash
authorRichard Levitte <levitte@openssl.org>
Mon, 29 Apr 2002 10:30:34 +0000 (10:30 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 29 Apr 2002 10:30:34 +0000 (10:30 +0000)
ssl/ssltest.c

index f98202945ebf67a7a9eb4e4c24a0c6550d150e76..1d9b30d78aa96127dfc224951dabd765019865d3 100644 (file)
@@ -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 */