From 326f8870c2746aea9b295e9b366174116f266b6e Mon Sep 17 00:00:00 2001 From: Jiang Y Date: Wed, 28 Jun 2023 13:32:12 +0800 Subject: [PATCH] Update qt_sinks.h: narrow cast msg.color_range_start, msg.color_range_end (#2781) --- include/spdlog/sinks/qt_sinks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 14a95bcc..670daa21 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -167,8 +167,8 @@ private: std::move(payload), // text to append default_color_, // default color colors_.at(msg.level), // color to apply - msg.color_range_start, // color range start - msg.color_range_end}; // color range end + static_cast(msg.color_range_start), // color range start + static_cast(msg.color_range_end)}; // color range end QMetaObject::invokeMethod( qt_text_edit_,