diff options
| author | Jeff Garzik <[email protected]> | 2012-04-15 11:39:15 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-15 11:39:15 -0700 |
| commit | 5a701eb7ea16b87b56263996ee8e98ec89e2a3d8 (patch) | |
| tree | fe8a60dc3eeb26e62cf4531a98b29ed99bee90e9 /src/addrman.cpp | |
| parent | Merge pull request #1084 from dooglus/validate_secret (diff) | |
| parent | fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] (diff) | |
| download | discoin-5a701eb7ea16b87b56263996ee8e98ec89e2a3d8.tar.xz discoin-5a701eb7ea16b87b56263996ee8e98ec89e2a3d8.zip | |
Merge pull request #1104 from laanwj/2012_04_clang
Enable and fix most compilation warnings
Diffstat (limited to 'src/addrman.cpp')
| -rw-r--r-- | src/addrman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 2ef666cf2..8fb40b46d 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -312,7 +312,7 @@ bool CAddrMan::Add_(const CAddress &addr, const CNetAddr& source, int64 nTimePen pinfo->nServices |= addr.nServices; // do not update if no new information is present - if (!addr.nTime || pinfo->nTime && addr.nTime <= pinfo->nTime) + if (!addr.nTime || (pinfo->nTime && addr.nTime <= pinfo->nTime)) return false; // do not update if the entry was already in the "tried" table |