Skip to content

Commit

Permalink
Reduce library size
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Apr 28, 2020
1 parent b1af642 commit 9dde9f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9dde9f0

Please sign in to comment.