Skip to content

Commit b9dc684

Browse files
committed
Suppress useless conversion warnings
1 parent f3d510c commit b9dc684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fmt/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,7 @@ struct formatter<T, Char,
26952695
// Take arguments by lvalue references to avoid some lifetime issues, e.g.
26962696
// auto args = make_format_args(std::string());
26972697
template <typename Context = context, typename... T,
2698-
int NUM_ARGS = sizeof...(T),
2698+
int NUM_ARGS = int(sizeof...(T)),
26992699
int NUM_NAMED_ARGS = detail::count_named_args<T...>(),
27002700
ullong DESC = detail::make_descriptor<Context, T...>()>
27012701
constexpr FMT_ALWAYS_INLINE auto make_format_args(T&... args)
@@ -2705,7 +2705,7 @@ constexpr FMT_ALWAYS_INLINE auto make_format_args(T&... args)
27052705

27062706
template <typename... T>
27072707
using vargs =
2708-
detail::format_arg_store<context, sizeof...(T),
2708+
detail::format_arg_store<context, int(sizeof...(T)),
27092709
detail::count_named_args<T...>(),
27102710
detail::make_descriptor<context, T...>()>;
27112711

0 commit comments

Comments
 (0)