From 8f2d273c3fef5fff08079b878b7ecb6e351f988a Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Tue, 10 Jan 2023 15:06:09 -0500 Subject: [PATCH] fixed errors caused by -Werror=conversion --- include/spdlog/details/attr_composer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/attr_composer.h b/include/spdlog/details/attr_composer.h index f9a9a853..56b48e55 100644 --- a/include/spdlog/details/attr_composer.h +++ b/include/spdlog/details/attr_composer.h @@ -53,14 +53,14 @@ inline void scramble(std::string& dst, string_view_t s) default: if (c <= '\x0f') { char buf[] = "\\u0000"; - buf[5] += c; + buf[5] += static_cast(c); if (c >= '\x0a') buf[5] += 'a' - ':'; replace(buf); } else if (c <= '\x1f' || c == 0x7f) { char buf[] = "\\u0010"; - buf[5] += c - 16; + buf[5] += static_cast(c - 16); if (c >= '\x1a') buf[5] += 'a' - ':'; replace(buf);