diff --git a/include/libtorrent/socket.hpp b/include/libtorrent/socket.hpp index 2689ed5f513..32c8c9c485a 100644 --- a/include/libtorrent/socket.hpp +++ b/include/libtorrent/socket.hpp @@ -158,7 +158,7 @@ struct udp : boost::asio::ip::udp { #ifdef IPV6_TCLASS struct traffic_class { - explicit traffic_class(char val): m_value(val) {} + explicit traffic_class(int val): m_value(val) {} template int level(Protocol const&) const { return IPPROTO_IPV6; } template @@ -178,7 +178,7 @@ struct udp : boost::asio::ip::udp { #else using tos_t = int; #endif - explicit type_of_service(char val) : m_value(tos_t(val)) {} + explicit type_of_service(tos_t const val) : m_value(tos_t(val)) {} template int level(Protocol const&) const { return IPPROTO_IP; } template @@ -193,7 +193,7 @@ struct udp : boost::asio::ip::udp { #ifdef IP_DSCP_TRAFFIC_TYPE struct dscp_traffic_type { - explicit dscp_traffic_type(char val) : m_value(DWORD(val)) {} + explicit dscp_traffic_type(DWORD val) : m_value(val) {} template int level(Protocol const&) const { return IP_DSCP_TRAFFIC_TYPE; } template