Skip to content

Commit

Permalink
Fix broken Ipv4 serialization on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Apr 11, 2014
1 parent 8bb8602 commit 960d731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/socket.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 960d731

Please sign in to comment.