diff options
| author | Gavin Andresen <[email protected]> | 2011-12-20 08:52:22 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-12-20 08:52:22 -0800 |
| commit | 74f5435e104be76cd342a9a196ed4a10b8a7e248 (patch) | |
| tree | 254f76dfa15c36a359e661caa1b4cfd158e204f4 /src/bitcoinrpc.cpp | |
| parent | Merge pull request #690 from runeksvendsen/qt-cmdline-options-parsing (diff) | |
| parent | Code cleanup: use ECDSA_size() instead of fixed 10,000 byte sig buffer, and e... (diff) | |
| download | discoin-74f5435e104be76cd342a9a196ed4a10b8a7e248.tar.xz discoin-74f5435e104be76cd342a9a196ed4a10b8a7e248.zip | |
Merge pull request #716 from gavinandresen/cleanup
Cleanups suggested by genjix
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index cd08d95d2..fdb1b34a0 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -950,7 +950,7 @@ struct tallyitem tallyitem() { nAmount = 0; - nConf = INT_MAX; + nConf = std::numeric_limits<int>::max(); } }; @@ -1002,7 +1002,7 @@ Value ListReceived(const Array& params, bool fByAccounts) continue; int64 nAmount = 0; - int nConf = INT_MAX; + int nConf = std::numeric_limits<int>::max(); if (it != mapTally.end()) { nAmount = (*it).second.nAmount; @@ -1021,7 +1021,7 @@ Value ListReceived(const Array& params, bool fByAccounts) obj.push_back(Pair("address", address.ToString())); obj.push_back(Pair("account", strAccount)); obj.push_back(Pair("amount", ValueFromAmount(nAmount))); - obj.push_back(Pair("confirmations", (nConf == INT_MAX ? 0 : nConf))); + obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf))); ret.push_back(obj); } } @@ -1035,7 +1035,7 @@ Value ListReceived(const Array& params, bool fByAccounts) Object obj; obj.push_back(Pair("account", (*it).first)); obj.push_back(Pair("amount", ValueFromAmount(nAmount))); - obj.push_back(Pair("confirmations", (nConf == INT_MAX ? 0 : nConf))); + obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf))); ret.push_back(obj); } } |