From 4578b0ad111a56ebbe129963d7b5084346ddbff6 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 15 Jul 2019 01:36:20 +0300 Subject: [PATCH] Fixed gcc9 conversion warning --- include/spdlog/sinks/systemd_sink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/sinks/systemd_sink.h b/include/spdlog/sinks/systemd_sink.h index ecc54a29..d6516890 100644 --- a/include/spdlog/sinks/systemd_sink.h +++ b/include/spdlog/sinks/systemd_sink.h @@ -46,9 +46,9 @@ protected: size_t length = msg.payload.size(); // limit to max int - if (length > std::numeric_limits::max()) + if (length > static_cast(std::numeric_limits::max())) { - length = std::numeric_limits::max(); + length = static_cast(std::numeric_limits::max()); } // Do not send source location if not available