Updates from 1.0.0-stable.
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
index 928755c..febc286 100644
--- a/ssl/s3_pkt.c
+++ b/ssl/s3_pkt.c
@@ -208,7 +208,7 @@
 		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 @@
 		{
 		if (max < n)
 			max = n;
-		if (max > rb->len - rb->offset)
+		if (max > (int)(rb->len - rb->offset))
 			max = rb->len - rb->offset;
 		}