1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #8015 from AgathiyanB/fix-unnecessary-type-quantifier

Fix IAR warning about unnecessary type quantifier
This commit is contained in:
Dave Rodgman
2023-08-03 15:57:01 +00:00
committed by GitHub

View File

@ -166,7 +166,7 @@ static int ecp_drbg_seed(ecp_drbg_context *ctx,
unsigned char secret_bytes[MBEDTLS_ECP_MAX_BYTES];
/* The list starts with strong hashes */
const mbedtls_md_type_t md_type =
(const mbedtls_md_type_t) (mbedtls_md_list()[0]);
(mbedtls_md_type_t) (mbedtls_md_list()[0]);
const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type(md_type);
if (secret_len > MBEDTLS_ECP_MAX_BYTES) {