From b7b8c09c8106de777320c1e6ae790e2489052a95 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Tue, 5 Sep 2023 20:35:19 +0100 Subject: [PATCH] Update bignum_core.c Co-authored-by: Gilles Peskine Signed-off-by: Dave Rodgman --- library/bignum_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/bignum_core.c b/library/bignum_core.c index 441151e66..e719dcc69 100644 --- a/library/bignum_core.c +++ b/library/bignum_core.c @@ -84,9 +84,9 @@ static mbedtls_mpi_uint mpi_bigendian_to_host(mbedtls_mpi_uint a) return a; } else { #if defined(MBEDTLS_HAVE_INT32) - return (mbedtls_mpi_uint) MBEDTLS_BSWAP32((uint32_t) a); + return (mbedtls_mpi_uint) MBEDTLS_BSWAP32(a); #elif defined(MBEDTLS_HAVE_INT64) - return (mbedtls_mpi_uint) MBEDTLS_BSWAP64((uint64_t) a); + return (mbedtls_mpi_uint) MBEDTLS_BSWAP64(a); #else #error "This is one of several places that need to be adapted to support a new limb size" #endif