From 3a798e148b6336777ef5f9a23505350bb340ef65 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 22 Dec 2023 13:53:11 -0800 Subject: [PATCH] Fix STM32 PKA ECC cast warning. --- wolfcrypt/src/port/st/stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/port/st/stm32.c b/wolfcrypt/src/port/st/stm32.c index 04d6c4753..6d43180fa 100644 --- a/wolfcrypt/src/port/st/stm32.c +++ b/wolfcrypt/src/port/st/stm32.c @@ -595,7 +595,7 @@ static int stm32_getabs_from_mp_int(uint8_t *dst, const mp_int *a, int sz, #else *abs_sign = 1; /* default to negative */ #endif - res = mp_abs(a, &x); + res = mp_abs((mp_int*)a, &x); if (res == MP_OKAY) res = stm32_get_from_mp_int(dst, &x, sz); mp_clear(&x);