summaryrefslogtreecommitdiffstats
path: root/mpi/mpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpi/mpi.c')
-rw-r--r--mpi/mpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpi/mpi.c b/mpi/mpi.c
index 2a2fea0d..6932d431 100644
--- a/mpi/mpi.c
+++ b/mpi/mpi.c
@@ -609,7 +609,7 @@ mp_err mp_get_intptr(mp_int *mp, int_ptr_t *z)
uint_ptr_t tmp = 0;
mp_get_uintptr(mp, &tmp);
/* Reliance on bitwise unsigned to two's complement conversion */
- *z = (int_ptr_t) tmp;
+ *z = convert(int_ptr_t, tmp);
return MP_OKAY;
}