aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-09-11 15:43:49 -0400
committerMatt Corallo <git@bluematt.me>2017-09-11 15:51:37 -0400
commit53a6590f496b25174c740927243bf8307541b0b9 (patch)
tree66e5b7ba754ffd41f58e600993f710e687f23502 /src/txmempool.h
parent0b1b9148cd77092d2851eeed5c8c6d5ce117452a (diff)
Make float <-> int casts explicit outside of test, qt, CFeeRate
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index b07886579c..929d223588 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -507,7 +507,7 @@ public:
* check does nothing.
*/
void check(const CCoinsViewCache *pcoins) const;
- void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = dFrequency * 4294967295.0; }
+ void setSanityCheck(double dFrequency = 1.0) { nCheckFrequency = static_cast<uint32_t>(dFrequency * 4294967295.0); }
// addUnchecked must updated state for all ancestors of a given transaction,
// to track size/count of descendant transactions. First version of