summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_montgomery_setup.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 11:51:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 11:51:58 (GMT)
commitb5c43fbc876f3a372f5d83509d70f648ae9d6b88 (patch)
tree90a0ce4df4ed3e6506fd6f8f12b113dee8cb81fc /libtommath/bn_mp_montgomery_setup.c
parent3bb9dc0307966417a84b0a63e2e7323a5da6bdbd (diff)
downloadtcl-b5c43fbc876f3a372f5d83509d70f648ae9d6b88.zip
tcl-b5c43fbc876f3a372f5d83509d70f648ae9d6b88.tar.gz
tcl-b5c43fbc876f3a372f5d83509d70f648ae9d6b88.tar.bz2
Import of libtommath 0.40
Diffstat (limited to 'libtommath/bn_mp_montgomery_setup.c')
-rw-r--r--libtommath/bn_mp_montgomery_setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_montgomery_setup.c b/libtommath/bn_mp_montgomery_setup.c
index 261a9fb..f082749 100644
--- a/libtommath/bn_mp_montgomery_setup.c
+++ b/libtommath/bn_mp_montgomery_setup.c
@@ -48,7 +48,7 @@ mp_montgomery_setup (mp_int * n, mp_digit * rho)
#endif
/* rho = -1/m mod b */
- *rho = (((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK;
+ *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK;
return MP_OKAY;
}