diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-04-22 13:51:16 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-04-23 14:14:36 -0400 |
commit | 1d8c7a9557d596d4c7edee801a724db7a908bce5 (patch) | |
tree | 5181d28a1c69ecc7c58ba4b0b15417d6817aa949 /src/main.h | |
parent | c0a0a93d02251390b482d4a147531989641c5a98 (diff) |
Add casts for unavoidable signed/unsigned comparisons
At these code sites, it is preferable to cast rather than change
a variable's type.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index 034911ac26..423891c3bc 100644 --- a/src/main.h +++ b/src/main.h @@ -437,7 +437,7 @@ public: nBlockHeight = nBestHeight; if (nBlockTime == 0) nBlockTime = GetAdjustedTime(); - if ((int64)nLockTime < (nLockTime < LOCKTIME_THRESHOLD ? (int64)nBlockHeight : nBlockTime)) + if ((int64)nLockTime < ((int64)nLockTime < LOCKTIME_THRESHOLD ? (int64)nBlockHeight : nBlockTime)) return true; BOOST_FOREACH(const CTxIn& txin, vin) if (!txin.IsFinal()) |