From f4c22a3670d0640616844c3a0487aa308a8dd5f4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Jun 2014 23:46:50 +0000 Subject: added support for clang fixed for NetworkAdress and NetworkPrefix --- src/networkAddress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/networkAddress.cpp') diff --git a/src/networkAddress.cpp b/src/networkAddress.cpp index a035fd6..370c81a 100644 --- a/src/networkAddress.cpp +++ b/src/networkAddress.cpp @@ -177,7 +177,7 @@ ethernet_bytes_type NetworkAddress::to_bytes_ethernet() const boost::array result; uint64_t ether=ethernet_address_; for(int i = 0; i < 6; i++) { - result[i] = (unsigned char)(ether && 0xff); + result[i] = (unsigned char)(ether & 0xff); ether >>= 8; } return result; -- cgit v1.2.3