diff options
author | Matt Corallo <git@bluematt.me> | 2017-09-11 15:43:49 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-09-11 15:51:37 -0400 |
commit | 53a6590f496b25174c740927243bf8307541b0b9 (patch) | |
tree | 66e5b7ba754ffd41f58e600993f710e687f23502 /src/rpc/net.cpp | |
parent | 0b1b9148cd77092d2851eeed5c8c6d5ce117452a (diff) |
Make float <-> int casts explicit outside of test, qt, CFeeRate
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 7faf216047..e0be817048 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -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)); |