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 19:52:31 +0000 |
commit | 5cd2a640a5ef867c376582810b1dd4b6fa43df5e (patch) | |
tree | 9963e1702c8d5657f28b8edb6390a93383fb20ac /src/main.cpp | |
parent | ca39829ecb90e392b9722292739585124ba0d7c1 (diff) | |
download | bitcoin-5cd2a640a5ef867c376582810b1dd4b6fa43df5e.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/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ee814aa552..0f45b2e16b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -372,7 +372,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi return error("AcceptToMemoryPool() : coinbase as individual tx"); // To help v0.1.5 clients who would see it as a negative number - if ((int64)nLockTime > INT_MAX) + if ((int64)nLockTime > std::numeric_limits<int>::max()) return error("AcceptToMemoryPool() : not accepting nLockTime beyond 2038 yet"); // Rather not work on nonstandard transactions (unless -testnet) |