diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index de81073e8..d20ae12b2 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -176,7 +176,7 @@ IsSocketError(const std::system_error &e) noexcept static inline bool IsSocketError(const std::system_error &e, socket_error_t code) noexcept { - return IsSocketError(e) && e.code().value() == code; + return IsSocketError(e) && static_cast(e.code().value()) == code; } [[gnu::pure]]