net/StaticSocketAddress: use SocketAddress::size_type

This commit is contained in:
Max Kellermann
2015-07-21 10:39:50 +02:00
parent 49aaf98a7f
commit 554888318a
2 changed files with 10 additions and 6 deletions

View File

@@ -44,7 +44,7 @@
StaticSocketAddress &
StaticSocketAddress::operator=(SocketAddress other)
{
size = std::min(size_t(other.GetSize()), GetCapacity());
size = std::min(other.GetSize(), GetCapacity());
memcpy(&address, other.GetAddress(), size);
return *this;
}