From: Wladimir J. van der Laan Date: Fri, 17 Feb 2012 13:40:21 +0000 (+0100) Subject: fix typo in CNetAddr::IsRFC4843() (fixes #850) X-Git-Tag: v0.4.0-unstable~129^2~213 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=d3896211d2c30de6968a6cead8d1debdc9002513 fix typo in CNetAddr::IsRFC4843() (fixes #850) --- diff --git a/src/netbase.cpp b/src/netbase.cpp index 54aa933..7799a65 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -402,7 +402,7 @@ bool CNetAddr::IsRFC6145() const bool CNetAddr::IsRFC4843() const { - return (GetByte(15) == 0x20 && GetByte(14) == 0x01 && GetByte(13) == 0x00 && GetByte(12) & 0xF0 == 0x10); + return (GetByte(15) == 0x20 && GetByte(14) == 0x01 && GetByte(13) == 0x00 && (GetByte(12) & 0xF0) == 0x10); } bool CNetAddr::IsLocal() const