From 2e328c85918669e58cd86540cfafecd7ac605463 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Mon, 22 Aug 2022 11:19:10 +0100 Subject: [PATCH] Remove confusing const qualifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since a is not a pointer, it is passed by value and declaring it const doesn’t make any sense and on the first read can make me miss the fact that a is not a pointer. Signed-off-by: Janos Follath --- library/bignum_core.c | 2 +- library/bignum_core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/bignum_core.c b/library/bignum_core.c index 15557e67d..8e89766a7 100644 --- a/library/bignum_core.c +++ b/library/bignum_core.c @@ -38,7 +38,7 @@ #include "bignum_core.h" -size_t mbedtls_mpi_core_clz( const mbedtls_mpi_uint a ) +size_t mbedtls_mpi_core_clz( mbedtls_mpi_uint a ) { size_t j; mbedtls_mpi_uint mask = (mbedtls_mpi_uint) 1 << (biL - 1); diff --git a/library/bignum_core.h b/library/bignum_core.h index 9fd9d2070..434f52b5e 100644 --- a/library/bignum_core.h +++ b/library/bignum_core.h @@ -37,7 +37,7 @@ * * \return The number of leading zero bits in \p a. */ -size_t mbedtls_mpi_core_clz( const mbedtls_mpi_uint a ); +size_t mbedtls_mpi_core_clz( mbedtls_mpi_uint a ); /** Return the minimum number of bits required to represent the value held * in the MPI.