Commit 185148f5 authored by Max Kellermann's avatar Max Kellermann

net/SocketAddress: add cast to size_type

parent ede74349
......@@ -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;
......
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