diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-21 11:06:05 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-21 11:06:05 +0200 |
commit | 185148f57ccbe1cdc54394204cd78400d892090c (patch) | |
tree | 00a39578cfa5b9180192b8d585e7118dd846d518 | |
parent | ede7434901e843674c99a5c5f8328532799ebdd9 (diff) |
net/SocketAddress: add cast to size_type
-rw-r--r-- | src/net/SocketAddress.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |