From d6496afa0b7fd4e3492ebe0ceb2e60cd1b9797e0 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 4 Jun 2020 15:01:32 +0200 Subject: [PATCH] Add a const annotation to the non-changing argument of mpi_sub_mul Signed-off-by: Gilles Peskine --- library/bignum.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index 827a3cb66..2b5e59c1c 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1092,7 +1092,9 @@ cleanup: /* * Helper for mbedtls_mpi subtraction */ -static void mpi_sub_hlp( size_t n, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d ) +static void mpi_sub_hlp( size_t n, + const mbedtls_mpi_uint *s, + mbedtls_mpi_uint *d ) { size_t i; mbedtls_mpi_uint c, z;