diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 17:08:25 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-06-14 20:38:25 +0000 |
commit | 0ce74bfaa5f34351e5b23e19ee90e7367bd50245 (patch) | |
tree | a4445dd77cc0964fca7aa1514aaf324f278350fb /src/wallet.cpp | |
parent | 3703150d56ff6ee557ab330e55637c9c23835902 (diff) | |
download | bitcoin-0ce74bfaa5f34351e5b23e19ee90e7367bd50245.tar.xz |
Use std::numeric_limits<> for typesafe INT_MAX/etc
(this fixes a Mac OS X gitian build error for 0.5.x)
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 3ffad27e82..68d7e5acdb 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -767,7 +767,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; |