From 6b1f7f101fdb5ed1fb61ae9771c5808df1e91076 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 16 May 2023 15:59:56 +0100 Subject: [PATCH] Use const where appropriate Signed-off-by: Paul Elliott --- library/ecp_curves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ecp_curves.c b/library/ecp_curves.c index 2bbec41e2..c4ae8f9e3 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -5492,7 +5492,7 @@ int mbedtls_ecp_mod_p448(mbedtls_mpi_uint *X, size_t X_limbs) } size_t M_limbs = X_limbs - (P448_WIDTH); - size_t Q_limbs = M_limbs; + const size_t Q_limbs = M_limbs; if (M_limbs > P448_WIDTH) { /* Shouldn't be called with N larger than 2^896! */