summaryrefslogtreecommitdiff
path: root/gmp-glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmp-glue.c')
-rw-r--r--gmp-glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmp-glue.c b/gmp-glue.c
index 5de167eb..f9a5e358 100644
--- a/gmp-glue.c
+++ b/gmp-glue.c
@@ -293,6 +293,7 @@ mpn_get_base256_le (uint8_t *rp, size_t rn,
in = *xp++;
xn--;
*rp++ = old | (in << bits);
+ rn--;
in >>= (8 - bits);
bits += GMP_NUMB_BITS - 8;
}