summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_set_int.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_set_int.c')
-rw-r--r--libtommath/bn_mp_set_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_set_int.c b/libtommath/bn_mp_set_int.c
index 4c71180..006f263 100644
--- a/libtommath/bn_mp_set_int.c
+++ b/libtommath/bn_mp_set_int.c
@@ -30,7 +30,7 @@ int mp_set_int(mp_int *a, unsigned long b)
}
/* OR in the top four bits of the source */
- a->dp[0] |= (b >> 28) & 15;
+ a->dp[0] |= (mp_digit)(b >> 28) & 15uL;
/* shift the source up to the next four bits */
b <<= 4;