mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
pad3 small optimization
This commit is contained in:
parent
0b516733db
commit
0876e39c4f
@ -75,7 +75,7 @@ inline void pad3(int n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
|
||||
|
||||
if (n > 99) // 100-999
|
||||
{
|
||||
append_int(n / 100, dest);
|
||||
dest.push_back(static_cast<char>('0' + n / 100));
|
||||
pad2(n % 100, dest);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user