From 185148f57ccbe1cdc54394204cd78400d892090c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Aug 2018 11:06:05 +0200 Subject: net/SocketAddress: add cast to size_type --- src/net/SocketAddress.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/SocketAddress.cxx b/src/net/SocketAddress.cxx index a3abb8c3f..a845cb8de 100644 --- a/src/net/SocketAddress.cxx +++ b/src/net/SocketAddress.cxx @@ -66,7 +66,7 @@ SocketAddress::GetLocalRaw() const noexcept const auto start = (const char *)sun; const auto path = sun->sun_path; const size_t header_size = path - start; - if (size < header_size) + if (size < size_type(header_size)) /* malformed address */ return nullptr; -- cgit v1.2.3