git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2e120f2
)
fix warnings: '&&' within '||' [-Wlogical-op-parentheses]
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Sun, 15 Apr 2012 11:03:28 +0000 (13:03 +0200)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Sun, 15 Apr 2012 11:40:14 +0000 (13:40 +0200)
src/addrman.cpp
patch
|
blob
|
history
diff --git
a/src/addrman.cpp
b/src/addrman.cpp
index
2ef666c
..
8fb40b4
100644
(file)
--- 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