mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
Fixed msvc conversion warning
This commit is contained in:
parent
59f54cda10
commit
3643db6821
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user