diff --git a/include/fmt/format.h b/include/fmt/format.h index b6a5ef90..1f1f3c4c 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1798,7 +1798,8 @@ class specs_handler : public specs_setter { typedef typename Context::format_arg format_arg; FMT_CONSTEXPR format_arg get_arg(auto_id) { - return internal::get_arg(context_, parse_context_.next_arg_id()); + return internal::get_arg( + context_, static_cast(parse_context_.next_arg_id())); } FMT_CONSTEXPR format_arg get_arg(unsigned arg_id) {