mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
Make float <-> int casts explicit outside of test, qt, CFeeRate
This commit is contained in:
@@ -146,7 +146,7 @@ UniValue getpeerinfo(const JSONRPCRequest& request)
|
||||
obj.push_back(Pair("timeoffset", stats.nTimeOffset));
|
||||
if (stats.dPingTime > 0.0)
|
||||
obj.push_back(Pair("pingtime", stats.dPingTime));
|
||||
if (stats.dMinPing < std::numeric_limits<int64_t>::max()/1e6)
|
||||
if (stats.dMinPing < static_cast<double>(std::numeric_limits<int64_t>::max())/1e6)
|
||||
obj.push_back(Pair("minping", stats.dMinPing));
|
||||
if (stats.dPingWait > 0.0)
|
||||
obj.push_back(Pair("pingwait", stats.dPingWait));
|
||||
|
||||
Reference in New Issue
Block a user