diff options
Diffstat (limited to 'src/networkAddress.cpp')
-rw-r--r-- | src/networkAddress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<unsigned char,6> 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; |