mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-24 08:28:49 -05:00
Fix broken Ipv4 serialization on win32
This commit is contained in:
parent
8bb8602c25
commit
960d731587
@ -202,7 +202,8 @@ std::string Address::serializeString() const
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if(m_addr_family == AF_INET)
|
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);
|
addr = ntohl(m_address.ipv4.sin_addr.s_addr);
|
||||||
a = (addr & 0xFF000000) >> 24;
|
a = (addr & 0xFF000000) >> 24;
|
||||||
b = (addr & 0x00FF0000) >> 16;
|
b = (addr & 0x00FF0000) >> 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user