mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 14:42:13 +08:00
Better support for 32bits
This commit is contained in:
parent
46cf0f86b8
commit
1d9ec2373a
@ -372,7 +372,7 @@ class t_formatter SPDLOG_FINAL : public flag_formatter
|
|||||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||||
{
|
{
|
||||||
// fmt::format_to(dest, "{}", msg.thread_id);
|
// fmt::format_to(dest, "{}", msg.thread_id);
|
||||||
fmt_helper::append_size_t(msg.thread_id, dest);
|
fmt_helper::append_int(msg.thread_id, dest);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -527,8 +527,8 @@ class full_formatter SPDLOG_FINAL : public flag_formatter
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long cached_seconds_ts_{0};
|
std::chrono::seconds::rep cached_seconds_ts_{0};
|
||||||
long cached_millis_ts_{0};
|
std::chrono::milliseconds::rep cached_millis_ts_{0};
|
||||||
fmt::memory_buffer cached_header_;
|
fmt::memory_buffer cached_header_;
|
||||||
fmt::memory_buffer cached_millis_;
|
fmt::memory_buffer cached_millis_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user