fixed IPv6 prefix handling issue on Windows

This commit is contained in:
Günter Obiltschnig 2014-11-07 08:33:30 +01:00
parent 10af7c6d4f
commit 478acee545

View File

@ -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)
{ {