From 6e5dd79a437c5ea899b0c14d256caeb4e5f0a1ce Mon Sep 17 00:00:00 2001
From: Hanno Becker <hanno.becker@arm.com>
Date: Tue, 28 Nov 2017 14:34:04 +0000
Subject: [PATCH] Fix compilation warning on MSVC

MSVC complains about the negation in `(uint32_t) -1u`. This commit fixes this by
using `(uint32_t) -1` instead.
---
 library/net_sockets.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/net_sockets.c b/library/net_sockets.c
index edd084416..2d1c1082a 100644
--- a/library/net_sockets.c
+++ b/library/net_sockets.c
@@ -471,7 +471,7 @@ int mbedtls_net_poll( mbedtls_net_context *ctx, uint32_t rw, uint32_t timeout )
     tv.tv_usec = ( timeout % 1000 ) * 1000;
 
     ret = select( fd + 1, &read_fds, &write_fds, NULL,
-                  timeout == (uint32_t) -1u ? NULL : &tv );
+                  timeout == (uint32_t) -1 ? NULL : &tv );
 
     if( ret < 0 )
         return( MBEDTLS_ERR_NET_POLL_FAILED );