diff --git a/include/boost/asio/ip/impl/address_v6.ipp b/include/boost/asio/ip/impl/address_v6.ipp index cf81cca410..adb7ae1d4e 100644 --- a/include/boost/asio/ip/impl/address_v6.ipp +++ b/include/boost/asio/ip/impl/address_v6.ipp @@ -282,7 +282,7 @@ address_v6 make_address_v6(const char* str, if (boost::asio::detail::socket_ops::inet_pton( BOOST_ASIO_OS_DEF(AF_INET6), str, &bytes[0], &scope_id, ec) <= 0) return address_v6(); - return address_v6(bytes, scope_id); + return address_v6(bytes, static_cast(scope_id)); } address_v6 make_address_v6(const std::string& str)