Browse Source

fix warnings: '&&' within '||' [-Wlogical-op-parentheses]

0.8
Wladimir J. van der Laan 13 years ago
parent
commit
6642ffb761
  1. 2
      src/addrman.cpp

2
src/addrman.cpp

@ -312,7 +312,7 @@ bool CAddrMan::Add_(const CAddress &addr, const CNetAddr& source, int64 nTimePen @@ -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

Loading…
Cancel
Save