Commit 4578b0ad authored by gabime's avatar gabime

Fixed gcc9 conversion warning

parent 9fbf82b6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment