Fixed gcc9 conversion warning

This commit is contained in:
gabime 2019-07-15 01:36:20 +03:00
parent 9fbf82b603
commit 4578b0ad11

View File

@ -46,9 +46,9 @@ protected:
size_t length = msg.payload.size();
// limit to max int
if (length > std::numeric_limits<int>::max())
if (length > static_cast<size_t>(std::numeric_limits<int>::max()))
{
length = std::numeric_limits<int>::max();
length = static_cast<size_t>(std::numeric_limits<int>::max());
}
// Do not send source location if not available