mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Fixed gcc9 conversion warning
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user