Fixed msvc conversion warning

This commit is contained in:
gabime 2018-07-05 10:54:02 +03:00
parent 59f54cda10
commit 3643db6821

View File

@ -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<std::chrono::nanoseconds>(duration).count() % 1000000000;
fmt::format_to(dest, "{:09}", static_cast<int>(ns));
fmt::format_to(dest, "{:09}", ns);
}
};