From 4b253d904db2bf6a25cde85f7812ecff75660e72 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 29 Dec 2008 00:17:36 +0000 Subject: [PATCH] Avoid signed/unsigned compare warnings. --- ssl/s3_clnt.c | 2 +- test/igetest.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 1ef9a86be4..837507cce1 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -1777,7 +1777,7 @@ int ssl3_get_cert_status(SSL *s) goto f_err; } n2l3(p, resplen); - if (resplen + 4 != n) + if (resplen + 4 != (unsigned long)n) { al = SSL_AD_DECODE_ERROR; SSLerr(SSL_F_SSL3_GET_CERT_STATUS,SSL_R_LENGTH_MISMATCH); diff --git a/test/igetest.c b/test/igetest.c index 95452d0965..a2578d09c5 100644 --- a/test/igetest.c +++ b/test/igetest.c @@ -190,7 +190,7 @@ static struct bi_ige_test const bi_ige_test_vectors[] = { static int run_test_vectors(void) { - int n; + unsigned int n; int errs = 0; for(n=0 ; n < sizeof(ige_test_vectors)/sizeof(ige_test_vectors[0]) ; ++n) @@ -292,7 +292,7 @@ int main(int argc, char **argv) unsigned char iv[AES_BLOCK_SIZE*4]; unsigned char saved_iv[AES_BLOCK_SIZE*4]; int err = 0; - int n; + unsigned int n; unsigned matches; assert(BIG_TEST_SIZE >= TEST_SIZE); -- 2.25.1