Reduce library size

This commit is contained in:
Victor Zverovich 2020-04-27 18:51:57 -07:00
parent b1af642d1d
commit 9dde9f0131

View File

@ -1664,8 +1664,7 @@ template <typename Range> class basic_writer {
unsigned width = to_unsigned(specs.width);
size_t size = f.size(); // The number of code units.
size_t num_code_points = width != 0 ? f.width() : size;
if (width <= num_code_points) return f(reserve(size));
size_t padding = width - num_code_points;
size_t padding = width > num_code_points ? width - num_code_points : 0;
size_t left_padding = 0;
if (specs.align == align::right)
left_padding = padding;