From: Wladimir J. van der Laan Date: Sun, 15 Apr 2012 11:03:28 +0000 (+0200) Subject: fix warnings: '&&' within '||' [-Wlogical-op-parentheses] X-Git-Tag: v0.4.0-unstable~129^2~1^2~18^2~17 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=9c236a945c7dc5f401b0ae51b69e2b658c62654c fix warnings: '&&' within '||' [-Wlogical-op-parentheses] --- diff --git a/src/addrman.cpp b/src/addrman.cpp index 2ef666c..8fb40b4 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