diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 17:08:25 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 19:10:34 -0500 |
commit | 26ce92b3526430d4a40b2faccef4facb966d6a0a (patch) | |
tree | e23a92f6152c3abcf8cf3c42bf5a5b50ecc5dc42 /src/wallet.cpp | |
parent | bd846c0e565ca0db276cb6b7eac7763bebe19b84 (diff) |
Use std::numeric_limits<> for typesafe INT_MAX/etc
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 87f5dfd659..c6f5795c0b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -782,7 +782,7 @@ bool CWallet::SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfThe // List of values less than target pair<int64, pair<const CWalletTx*,unsigned int> > coinLowestLarger; - coinLowestLarger.first = INT64_MAX; + coinLowestLarger.first = std::numeric_limits<int64>::max(); coinLowestLarger.second.first = NULL; vector<pair<int64, pair<const CWalletTx*,unsigned int> > > vValue; int64 nTotalLower = 0; |