Skip to content

Commit 960d731

Browse files
sapiersapier
sapier
authored and
sapier
committedApr 11, 2014
Fix broken Ipv4 serialization on win32
1 parent 8bb8602 commit 960d731

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/socket.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ std::string Address::serializeString() const
202202
#ifdef _WIN32
203203
if(m_addr_family == AF_INET)
204204
{
205-
u8 a, b, c, d, addr;
205+
u8 a, b, c, d;
206+
u32 addr;
206207
addr = ntohl(m_address.ipv4.sin_addr.s_addr);
207208
a = (addr & 0xFF000000) >> 24;
208209
b = (addr & 0x00FF0000) >> 16;

0 commit comments

Comments
 (0)
Please sign in to comment.