diff options
| author | Matt Corallo <[email protected]> | 2017-09-11 15:43:49 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-09-11 15:51:37 -0400 |
| commit | 53a6590f496b25174c740927243bf8307541b0b9 (patch) | |
| tree | 66e5b7ba754ffd41f58e600993f710e687f23502 /src/rpc/net.cpp | |
| parent | Remove countMaskInv caching in bench framework (diff) | |
| download | discoin-53a6590f496b25174c740927243bf8307541b0b9.tar.xz discoin-53a6590f496b25174c740927243bf8307541b0b9.zip | |
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 7faf21604..e0be81704 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)); |