From d6ddcd660f375c954e7d4ebe8fb77fff0029a637 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 10 Jan 2019 09:19:26 +0000 Subject: [PATCH] Avoid MSVC compiler warning MSVC warns about use of unary `-` operator on unsigned integers. --- library/x509_crt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index 76558342e..325bbc0b1 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -368,7 +368,7 @@ static void x509_crt_verify_chain_reset( for( i = 0; i < MBEDTLS_X509_MAX_VERIFY_CHAIN_SIZE; i++ ) { ver_chain->items[i].crt = NULL; - ver_chain->items[i].flags = -1; + ver_chain->items[i].flags = (uint32_t) -1; } ver_chain->len = 0;