summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_div_3.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_div_3.c')
-rw-r--r--libtommath/bn_mp_div_3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_div_3.c b/libtommath/bn_mp_div_3.c
index 3c60269ecea..608e759e366 100644
--- a/libtommath/bn_mp_div_3.c
+++ b/libtommath/bn_mp_div_3.c
@@ -25,7 +25,7 @@ mp_div_3 (mp_int * a, mp_int *c, mp_digit * d)
int res, ix;
/* b = 2**DIGIT_BIT / 3 */
- b = (((mp_word)1) << ((mp_word)DIGIT_BIT)) / ((mp_word)3);
+ b = word_div_int (((mp_word)1) << DIGIT_BIT, 3);
if ((res = mp_init_size(&q, a->used)) != MP_OKAY) {
return res;