diff --git a/include/emio/detail/format/formatter.hpp b/include/emio/detail/format/formatter.hpp index 5df1132..05034fe 100644 --- a/include/emio/detail/format/formatter.hpp +++ b/include/emio/detail/format/formatter.hpp @@ -164,8 +164,7 @@ constexpr result write_arg(writer& out, format_specs& specs, const Arg& ar } return write_padded(out, specs, total_width, [&, &opt = options]() noexcept -> result { - const size_t area_size = - num_digits + static_cast(sign_to_write != no_sign) + static_cast(prefix_to_write.size()); + const size_t area_size = num_digits + static_cast(sign_to_write != no_sign) + prefix_to_write.size(); EMIO_TRY(auto area, out.get_buffer().get_write_area_of(area_size)); auto* it = area.data(); if (sign_to_write != no_sign) {