From 22c51517fb075b977e488a8e47574ee4e13d81e5 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 12 Apr 2019 15:07:32 +0200 Subject: [PATCH] Use unsigned int for bitfields uintN_t is not a standard type for a bitfield, as armcc points out. --- include/psa/crypto_struct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_struct.h b/include/psa/crypto_struct.h index 2414ad5d71..6eed2590aa 100644 --- a/include/psa/crypto_struct.h +++ b/include/psa/crypto_struct.h @@ -186,8 +186,8 @@ typedef struct #endif uint8_t offset_in_block; uint8_t block_number; - uint8_t state : 2; - uint8_t info_set : 1; + unsigned int state : 2; + unsigned int info_set : 1; } psa_hkdf_generator_t; #endif /* MBEDTLS_MD_C */