net/SocketAddress: add cast to size_type
This commit is contained in:
parent
ede7434901
commit
185148f57c
@ -66,7 +66,7 @@ SocketAddress::GetLocalRaw() const noexcept
|
|||||||
const auto start = (const char *)sun;
|
const auto start = (const char *)sun;
|
||||||
const auto path = sun->sun_path;
|
const auto path = sun->sun_path;
|
||||||
const size_t header_size = path - start;
|
const size_t header_size = path - start;
|
||||||
if (size < header_size)
|
if (size < size_type(header_size))
|
||||||
/* malformed address */
|
/* malformed address */
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user