Skip to content
Snippets Groups Projects
Commit 960d7315 authored by sapier's avatar sapier
Browse files

Fix broken Ipv4 serialization on win32

parent 8bb8602c
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,8 @@ std::string Address::serializeString() const
#ifdef _WIN32
if(m_addr_family == AF_INET)
{
u8 a, b, c, d, addr;
u8 a, b, c, d;
u32 addr;
addr = ntohl(m_address.ipv4.sin_addr.s_addr);
a = (addr & 0xFF000000) >> 24;
b = (addr & 0x00FF0000) >> 16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment