diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 15:25:30 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 15:25:30 -0400 |
commit | df035166df236cbd81c0f72d3f52fbfadad985b2 (patch) | |
tree | bb6c70fdb42f24940ae4bf30277760e42522a8a3 /src/lib/pubkey/mce | |
parent | dd860ab0c897ee6f3af8a549910e7ae0e3c4772c (diff) |
Avoid -size_t
Diffstat (limited to 'src/lib/pubkey/mce')
-rw-r--r-- | src/lib/pubkey/mce/mce_workfactor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/mce_workfactor.cpp b/src/lib/pubkey/mce/mce_workfactor.cpp index f1dddeee9..d4adb3647 100644 --- a/src/lib/pubkey/mce/mce_workfactor.cpp +++ b/src/lib/pubkey/mce/mce_workfactor.cpp @@ -53,7 +53,7 @@ double cout_iter(size_t n, size_t k, size_t p, size_t l) { double x = binomial(k / 2, p); const size_t i = static_cast<size_t>(std::log(x) / std::log(2)); - double res = 2 * p * (n - k - l) * ldexp(x * x, -l); + double res = 2 * p * (n - k - l) * ldexp(x * x, -static_cast<int>(l)); // x <- binomial(k/2,p)*2*(2*l+log[2](binomial(k/2,p))) x *= 2 * (2 * l + i); |