Skip to content

Commit 3a798e1

Browse files
committed
Fix STM32 PKA ECC cast warning.
1 parent daf1d17 commit 3a798e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/port/st/stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static int stm32_getabs_from_mp_int(uint8_t *dst, const mp_int *a, int sz,
595595
#else
596596
*abs_sign = 1; /* default to negative */
597597
#endif
598-
res = mp_abs(a, &x);
598+
res = mp_abs((mp_int*)a, &x);
599599
if (res == MP_OKAY)
600600
res = stm32_get_from_mp_int(dst, &x, sz);
601601
mp_clear(&x);

0 commit comments

Comments
 (0)