summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_div_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_div_2.c')
-rw-r--r--libtommath/bn_mp_div_2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_div_2.c b/libtommath/bn_mp_div_2.c
index edc8982..2907a1b 100644
--- a/libtommath/bn_mp_div_2.c
+++ b/libtommath/bn_mp_div_2.c
@@ -42,7 +42,7 @@ int mp_div_2(const mp_int *a, mp_int *b)
r = 0;
for (x = b->used - 1; x >= 0; x--) {
/* get the carry for the next iteration */
- rr = *tmpa & 1;
+ rr = *tmpa & 1u;
/* shift the current digit, add in carry and store */
*tmpb-- = (*tmpa-- >> 1) | (r << (DIGIT_BIT - 1));