From 478acee545194db070fa97be30c95ddfa6f3b620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 7 Nov 2014 08:33:30 +0100 Subject: [PATCH] fixed IPv6 prefix handling issue on Windows --- Net/src/IPAddressImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {