mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
fixed IPv6 prefix handling issue on Windows
This commit is contained in:
parent
10af7c6d4f
commit
478acee545
@ -397,7 +397,7 @@ IPv6AddressImpl::IPv6AddressImpl(unsigned prefix):
|
|||||||
}
|
}
|
||||||
if (prefix > 0)
|
if (prefix > 0)
|
||||||
{
|
{
|
||||||
_addr.s6_addr16[i++] = ByteOrder::toNetwork(~(0xffff >> prefix));
|
_addr.s6_addr16[i++] = ByteOrder::toNetwork(static_cast<Poco::UInt16>(~(0xffff >> prefix)));
|
||||||
}
|
}
|
||||||
while (i < 8)
|
while (i < 8)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user