Skip to content

Commit 478acee

Browse files
committed
fixed IPv6 prefix handling issue on Windows
1 parent 10af7c6 commit 478acee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Net/src/IPAddressImpl.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ IPv6AddressImpl::IPv6AddressImpl(unsigned prefix):
397397
}
398398
if (prefix > 0)
399399
{
400-
_addr.s6_addr16[i++] = ByteOrder::toNetwork(~(0xffff >> prefix));
400+
_addr.s6_addr16[i++] = ByteOrder::toNetwork(static_cast<Poco::UInt16>(~(0xffff >> prefix)));
401401
}
402402
while (i < 8)
403403
{

0 commit comments

Comments
 (0)