Commit 225d2a0d authored by Dominik Charousset's avatar Dominik Charousset

Fix conversion warnings

parent ad183e7b
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
using result = using result =
typename std::conditional< typename std::conditional<
std::is_same<T, char>::value, std::is_same<T, char>::value,
uint8_t, int8_t,
T T
>::type; >::type;
return std::move(get<result>(val)); return std::move(get<result>(val));
......
...@@ -131,8 +131,8 @@ uint16_t remote_port_of_fd(native_socket fd); ...@@ -131,8 +131,8 @@ uint16_t remote_port_of_fd(native_socket fd);
void allow_sigpipe(native_socket fd, bool new_value) { void allow_sigpipe(native_socket fd, bool new_value) {
# ifndef CAF_LINUX # ifndef CAF_LINUX
int value = new_value ? 0 : 1; int value = new_value ? 0 : 1;
ccall(cc_zero, "cannot set SO_NOSIGPIPE", setsockopt, ccall(cc_zero, "cannot set SO_NOSIGPIPE", setsockopt, fd, SOL_SOCKET,
fd, SOL_SOCKET, SO_NOSIGPIPE, &value, sizeof(value)); SO_NOSIGPIPE, &value, static_cast<unsigned>(sizeof(value)));
# else # else
// SO_NOSIGPIPE does not exist on Linux, suppress unused warnings // SO_NOSIGPIPE does not exist on Linux, suppress unused warnings
static_cast<void>(fd); static_cast<void>(fd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment