From 98081a09e66f358eaa7aeb1cca1fe7b4d836c8bd Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 22 Aug 2018 13:32:50 +0100 Subject: [PATCH] Don't use uint8_t for bitfields Fixing a build failure using armcc. --- include/mbedtls/ssl_internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index 3f595a322..4b4417a5f 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -319,9 +319,9 @@ struct mbedtls_ssl_handshake_params struct mbedtls_ssl_hs_buffer { - uint8_t is_valid : 1; - uint8_t is_fragmented : 1; - uint8_t is_complete : 1; + unsigned is_valid : 1; + unsigned is_fragmented : 1; + unsigned is_complete : 1; unsigned char *data; size_t data_len; } hs[MBEDTLS_SSL_MAX_BUFFERED_HS];