Commit 0876e39c authored by gabime's avatar gabime

pad3 small optimization

parent 0b516733
...@@ -75,7 +75,7 @@ inline void pad3(int n, fmt::basic_memory_buffer<char, Buffer_Size> &dest) ...@@ -75,7 +75,7 @@ inline void pad3(int n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
if (n > 99) // 100-999 if (n > 99) // 100-999
{ {
append_int(n / 100, dest); dest.push_back(static_cast<char>('0' + n / 100));
pad2(n % 100, dest); pad2(n % 100, dest);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment