diff --git a/src/network/stk_ipv6.cpp b/src/network/stk_ipv6.cpp index d2127353f..d7d860dd7 100644 --- a/src/network/stk_ipv6.cpp +++ b/src/network/stk_ipv6.cpp @@ -44,6 +44,7 @@ #include "network/network_config.hpp" #include #include +#include // ============================================================================ // For Windows XP support @@ -178,8 +179,8 @@ stk_inet_pton6(const char *src, void *dest) * Since some memmove()'s erroneously fail to handle * overlapping regions, we'll do the shift by hand. */ - const size_t n = tp - colonp; - size_t i; + const ptrdiff_t n = tp - colonp; + ptrdiff_t i; if(tp == endp) return (0);