diff options
| author | Gavin Andresen <[email protected]> | 2011-12-19 17:08:25 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-12-19 19:10:34 -0500 |
| commit | 26ce92b3526430d4a40b2faccef4facb966d6a0a (patch) | |
| tree | e23a92f6152c3abcf8cf3c42bf5a5b50ecc5dc42 /src/main.cpp | |
| parent | Cleanup: removed dead code, and use C99 typedefs for int64 (supported by all ... (diff) | |
| download | discoin-26ce92b3526430d4a40b2faccef4facb966d6a0a.tar.xz discoin-26ce92b3526430d4a40b2faccef4facb966d6a0a.zip | |
Use std::numeric_limits<> for typesafe INT_MAX/etc
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 052701e5f..09f821b12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -366,7 +366,7 @@ bool CTransaction::AcceptToMemoryPool(CTxDB& txdb, bool fCheckInputs, bool* pfMi return DoS(100, 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"); // Safety limits |