diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-14 15:28:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-14 15:28:44 +0000 |
commit | c8f759ec748917706732993957116b02985cd28a (patch) | |
tree | 1bcd200788a21d990bf6356e1a5f0c083eb783d3 /ssl | |
parent | 5fda10c6f1273c6e3beb3e6d8d71e03d9ed4e1ff (diff) |
Stop warning of signed/unsigned compare.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 928755c82a..febc2860e1 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -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; } |