From 2ddd6895e1507e8b099ef284fbc64eb4de5981ee Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 17 Sep 2019 00:15:35 +0300 Subject: [PATCH] Backported clang warning fix from fmt --- include/spdlog/fmt/bundled/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bundled/format-inl.h b/include/spdlog/fmt/bundled/format-inl.h index 147062fe..3fbb8060 100644 --- a/include/spdlog/fmt/bundled/format-inl.h +++ b/include/spdlog/fmt/bundled/format-inl.h @@ -698,7 +698,7 @@ FMT_API bool grisu_format(Double value, buffer& buf, int precision, buf.push_back('0'); } else { exp = -precision; - buf.resize(precision); + buf.resize(to_unsigned(precision)); std::uninitialized_fill_n(buf.data(), precision, '0'); } return true;