projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb8602
)
Fix broken Ipv4 serialization on win32
author
sapier
<Sapier at GMX dot net>
Fri, 11 Apr 2014 20:51:10 +0000
(22:51 +0200)
committer
sapier
<Sapier at GMX dot net>
Fri, 11 Apr 2014 20:51:10 +0000
(22:51 +0200)
src/socket.cpp
patch
|
blob
|
history
diff --git
a/src/socket.cpp
b/src/socket.cpp
index bca9c5390b987a58f9e412b96a88535a79ba890e..508d61a3126bf26aa36acd8dad96cdffe9056882 100644
(file)
--- 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;