diff options
author | Dan Brown <[email protected]> | 2016-04-27 15:21:26 -0700 |
---|---|---|
committer | Dan Brown <[email protected]> | 2016-04-27 15:21:26 -0700 |
commit | a0a2b66b3b6ba9dd94f924ef9639570f4a4ae2b6 (patch) | |
tree | c4fdfd8e588a2550a0d2b6f5c41d1cdffffcacc6 /src/lib/pubkey/workfactor.cpp | |
parent | b55e9bca0c747154aeeb188df9a8a6eda6d65124 (diff) |
Add explicit static_cast operations to eliminate implicit cast compiler warnings.
Diffstat (limited to 'src/lib/pubkey/workfactor.cpp')
-rw-r--r-- | src/lib/pubkey/workfactor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/workfactor.cpp b/src/lib/pubkey/workfactor.cpp index 5cbd17f09..8be64bef3 100644 --- a/src/lib/pubkey/workfactor.cpp +++ b/src/lib/pubkey/workfactor.cpp @@ -51,7 +51,7 @@ size_t dl_exponent_size(size_t bits) const double strength = 1.92 * std::pow(log_p, 1.0/3.0) * std::pow(std::log(log_p), 2.0/3.0); - return 2 * std::max<size_t>(MIN_WORKFACTOR, log2_e * strength); + return 2 * std::max<size_t>(MIN_WORKFACTOR, static_cast<size_t>(log2_e * strength)); } } |