diff --git a/include/fmt/base.h b/include/fmt/base.h index 09668925..4c9525e9 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2361,8 +2361,10 @@ FMT_CONSTEXPR auto parse_precision(const Char* begin, const Char* end, basic_format_parse_context& ctx) -> const Char* { ++begin; - if (begin != end) begin = parse_dynamic_spec(begin, end, value, ref, ctx); - else report_error("invalid precision"); + if (begin != end) + begin = parse_dynamic_spec(begin, end, value, ref, ctx); + else + report_error("invalid precision"); return begin; }