From 6d56ee7edf254c3ec9ac6a96401aff9479654cec Mon Sep 17 00:00:00 2001 From: Aleksandr Sokolkin Date: Mon, 27 Oct 2025 21:13:19 +0500 Subject: [PATCH] fix sign-compare warning --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index edbbd5c25e..8a2e203cd8 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -489,7 +489,7 @@ SPDLOG_INLINE void utf8_to_wstrbuf(string_view_t str, wmemory_buf_t &target) { result_size = ::MultiByteToWideChar(CP_UTF8, 0, str.data(), str_size, target.data(), result_size); if (result_size > 0) { - assert(result_size == target.size()); + assert(result_size == static_cast(target.size())); return; } }