summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authorkbk <kbk@noemail.net>2011-07-02 22:36:45 (GMT)
committerkbk <kbk@noemail.net>2011-07-02 22:36:45 (GMT)
commit17fe8298e125970af43035f7177c13e192afed57 (patch)
treecfb063e941efc61b9d4aaf5f1b223dae502e9b76 /libtommath
parent6df67af16fce94ddc8d5d6a706b046358b80b4b4 (diff)
parent2f572000ab74d449c9c69b70230a3e04dda068c9 (diff)
downloadtcl-17fe8298e125970af43035f7177c13e192afed57.zip
tcl-17fe8298e125970af43035f7177c13e192afed57.tar.gz
tcl-17fe8298e125970af43035f7177c13e192afed57.tar.bz2
Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]
FossilOrigin-Name: fe4dba4d609fca67d2eefe030096f6cf04184895
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/bn_mp_cnt_lsb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/bn_mp_cnt_lsb.c b/libtommath/bn_mp_cnt_lsb.c
index 6447a1f..f205e8c 100644
--- a/libtommath/bn_mp_cnt_lsb.c
+++ b/libtommath/bn_mp_cnt_lsb.c
@@ -20,7 +20,7 @@ static const int lnz[16] = {
};
/* Counts the number of lsbs which are zero before the first zero bit */
-int mp_cnt_lsb(mp_int *a)
+int mp_cnt_lsb(const mp_int *a)
{
int x;
mp_digit q, qq;