Skip to content

Commit 22c5151

Browse files
Use unsigned int for bitfields
uintN_t is not a standard type for a bitfield, as armcc points out.
1 parent ab4b201 commit 22c5151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/psa/crypto_struct.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ typedef struct
186186
#endif
187187
uint8_t offset_in_block;
188188
uint8_t block_number;
189-
uint8_t state : 2;
190-
uint8_t info_set : 1;
189+
unsigned int state : 2;
190+
unsigned int info_set : 1;
191191
} psa_hkdf_generator_t;
192192
#endif /* MBEDTLS_MD_C */
193193

0 commit comments

Comments
 (0)