TCPServer: optimized Client struct size

This commit is contained in:
SChernykh
2022-05-07 12:29:45 +02:00
parent 1dd06cc509
commit d4e362cd76
5 changed files with 16 additions and 14 deletions

View File

@@ -443,7 +443,7 @@ struct log::Stream::Entry<PadRight<T>>
const int len = std::min<int>(data.m_len, log::Stream::BUF_SIZE);
if (s.m_pos < len) {
memset(buf + s.m_pos, ' ', len - s.m_pos);
memset(buf + s.m_pos, ' ', static_cast<size_t>(len) - s.m_pos);
s.m_pos = len;
}