mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
fixed comment
This commit is contained in:
parent
927b2b3942
commit
619849c793
@ -73,7 +73,7 @@ inline void pad_uint(T n, unsigned int width, memory_buf_t &dest)
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
inline void pad3(T n, memory_buf_t &dest)
|
inline void pad3(T n, memory_buf_t &dest)
|
||||||
{
|
{
|
||||||
static_assert(std::is_unsigned<T>::value, "pad_uint must get unsigned T");
|
static_assert(std::is_unsigned<T>::value, "pad3 must get unsigned T");
|
||||||
if(n < 1000)
|
if(n < 1000)
|
||||||
{
|
{
|
||||||
dest.push_back(static_cast<char>(n / 100 + '0'));
|
dest.push_back(static_cast<char>(n / 100 + '0'));
|
||||||
|
Loading…
Reference in New Issue
Block a user