Fix STM32 PKA ECC cast warning.

This commit is contained in:
David Garske
2023-12-22 13:53:11 -08:00
parent daf1d1728f
commit 3a798e148b

View File

@@ -595,7 +595,7 @@ static int stm32_getabs_from_mp_int(uint8_t *dst, const mp_int *a, int sz,
#else #else
*abs_sign = 1; /* default to negative */ *abs_sign = 1; /* default to negative */
#endif #endif
res = mp_abs(a, &x); res = mp_abs((mp_int*)a, &x);
if (res == MP_OKAY) if (res == MP_OKAY)
res = stm32_get_from_mp_int(dst, &x, sz); res = stm32_get_from_mp_int(dst, &x, sz);
mp_clear(&x); mp_clear(&x);