summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
Diffstat (limited to 'mpi')
-rw-r--r--mpi/mpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpi/mpi.c b/mpi/mpi.c
index f58e9e68..96dc71d4 100644
--- a/mpi/mpi.c
+++ b/mpi/mpi.c
@@ -594,7 +594,7 @@ mp_err mp_get_uintptr(mp_int *mp, uint_ptr_t *z)
int ix;
int nd = USED(mp);
for (ix = 0; ix < nd; ix++, out <<= MP_DIGIT_BIT)
- out = DIGIT(mp, ix);
+ out |= DIGIT(mp, ix);
#else
out = DIGIT(mp, 0);
#endif