From 71e8ce1e88f70e9f59a51d85373bbe40730ed845 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 23 Feb 2019 12:32:20 -0500 Subject: [PATCH] Add explicit cast to disable warning --- include/fmt/format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {