From 3643db6821d30846348f14852073bf26071ee3bc Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 5 Jul 2018 10:54:02 +0300 Subject: [PATCH] Fixed msvc conversion warning --- include/spdlog/details/pattern_formatter_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/pattern_formatter_impl.h b/include/spdlog/details/pattern_formatter_impl.h index 1b25fb79..65bfa483 100644 --- a/include/spdlog/details/pattern_formatter_impl.h +++ b/include/spdlog/details/pattern_formatter_impl.h @@ -246,7 +246,7 @@ class F_formatter SPDLOG_FINAL : public flag_formatter { auto duration = msg.time.time_since_epoch(); auto ns = std::chrono::duration_cast(duration).count() % 1000000000; - fmt::format_to(dest, "{:09}", static_cast(ns)); + fmt::format_to(dest, "{:09}", ns); } };