diff --git a/Net/src/IPAddressImpl.cpp b/Net/src/IPAddressImpl.cpp index f324c6015..5097bbb5d 100644 --- a/Net/src/IPAddressImpl.cpp +++ b/Net/src/IPAddressImpl.cpp @@ -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(~(0xffff >> prefix))); } while (i < 8) {