From 6276f1d46562416bbde771e42a2b6b990a0ddead Mon Sep 17 00:00:00 2001 From: moiwi <71585945+moiwi@users.noreply.github.com> Date: Fri, 12 Mar 2021 11:21:01 +0100 Subject: [PATCH] Update format.h --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 9874d5ca..00072881 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1627,7 +1627,7 @@ FMT_CONSTEXPR OutputIt write_padded(OutputIt out, auto it = reserve(out, size + padding * specs.fill.size()); if (left_padding != 0) it = fill(it, left_padding, specs.fill); it = f(it); - if (right_padding != 0) it = fill(it, padding - left_padding, specs.fill); + if (right_padding != 0) it = fill(it, right_padding, specs.fill); return base_iterator(out, it); }