summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_cnt_lsb.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2011-07-02 22:36:45 (GMT)
committerKevin B Kenny <kennykb@acm.org>2011-07-02 22:36:45 (GMT)
commitf533d3ab41a3edeaa1ae611372dea0d13c51ef76 (patch)
treecfb063e941efc61b9d4aaf5f1b223dae502e9b76 /libtommath/bn_mp_cnt_lsb.c
parente5c7df2c2fb5c9de57beb562b5895257b75d5340 (diff)
parente08b947885c19c9ce8dc19999af8b96fb3d37073 (diff)
downloadtcl-f533d3ab41a3edeaa1ae611372dea0d13c51ef76.zip
tcl-f533d3ab41a3edeaa1ae611372dea0d13c51ef76.tar.gz
tcl-f533d3ab41a3edeaa1ae611372dea0d13c51ef76.tar.bz2
Fix roundoff gaffe in bignum-to-double conversion [Bug 3349507]
Diffstat (limited to 'libtommath/bn_mp_cnt_lsb.c')
-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;