mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Fixed gcc9 conversion warning
This commit is contained in:
parent
9fbf82b603
commit
4578b0ad11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user