git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b7c25e0
)
fix typo in CNetAddr::IsRFC4843() (fixes #850)
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Fri, 17 Feb 2012 13:40:21 +0000 (14:40 +0100)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Fri, 17 Feb 2012 13:40:21 +0000 (14:40 +0100)
src/netbase.cpp
patch
|
blob
|
history
diff --git
a/src/netbase.cpp
b/src/netbase.cpp
index
54aa933
..
7799a65
100644
(file)
--- 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