Stop warning of signed/unsigned compare.

This commit is contained in:
Dr. Stephen Henson 2009-07-14 15:28:44 +00:00
parent 5fda10c6f1
commit c8f759ec74

View file

@ -208,7 +208,7 @@ int ssl3_read_n(SSL *s, int n, int max, int extend)
rb->offset = len + align;
}
if (n > rb->len - rb->offset) /* does not happen */
if (n > (int)(rb->len - rb->offset)) /* does not happen */
{
SSLerr(SSL_F_SSL3_READ_N,ERR_R_INTERNAL_ERROR);
return -1;
@ -221,7 +221,7 @@ int ssl3_read_n(SSL *s, int n, int max, int extend)
{
if (max < n)
max = n;
if (max > rb->len - rb->offset)
if (max > (int)(rb->len - rb->offset))
max = rb->len - rb->offset;
}