diff options
author | sapier <Sapier at GMX dot net> | 2014-04-11 22:51:10 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-04-11 22:51:10 +0200 |
commit | 960d731587f58036bd4957f4a77db41e145c2d04 (patch) | |
tree | cdd020837634d0293c14cceaa91da8188b22f71f /src | |
parent | 8bb8602c2533384fdd5ecb95edc5156808a34db5 (diff) | |
download | minetest-960d731587f58036bd4957f4a77db41e145c2d04.tar.gz minetest-960d731587f58036bd4957f4a77db41e145c2d04.tar.bz2 minetest-960d731587f58036bd4957f4a77db41e145c2d04.zip |
Fix broken Ipv4 serialization on win32
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index bca9c5390..508d61a31 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -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; |