diff options
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index a7d204047..ac4871f61 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -100,10 +100,10 @@ void Address::Resolve(const char *name) std::string Address::serializeString() { unsigned int a, b, c, d; - a = (m_address && 0xFF000000)>>24; - b = (m_address && 0x00FF0000)>>16; - c = (m_address && 0x0000FF00)>>8; - d = (m_address && 0x000000FF); + a = (m_address & 0xFF000000)>>24; + b = (m_address & 0x00FF0000)>>16; + c = (m_address & 0x0000FF00)>>8; + d = (m_address & 0x000000FF); return itos(a)+"."+itos(b)+"."+itos(c)+"."+itos(d); } |