mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
pad3 small optimization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user