mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
fixed IPv6 prefix handling issue on Windows
This commit is contained in:
@@ -397,7 +397,7 @@ IPv6AddressImpl::IPv6AddressImpl(unsigned prefix):
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user