From 8ed40903b430729ae672c2de121e697f0c9e7fa9 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk <170263+biodranik@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:31:03 +0200 Subject: [PATCH] Fix Apple clang build warning/error on iOS/tvOS asio/ip/impl/address_v6.ipp:284:28: error: implicit conversion loses integer precision: 'unsigned long' to 'scope_id_type' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] --- asio/include/asio/ip/impl/address_v6.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asio/include/asio/ip/impl/address_v6.ipp b/asio/include/asio/ip/impl/address_v6.ipp index 8d5b7d1fd0..939ec1d17a 100644 --- a/asio/include/asio/ip/impl/address_v6.ipp +++ b/asio/include/asio/ip/impl/address_v6.ipp @@ -281,7 +281,7 @@ address_v6 make_address_v6(const char* str, if (asio::detail::socket_ops::inet_pton( 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)