Skip to content

Commit

Permalink
fix implicit sign conversion warning for clang with std=c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
alexezeder committed Nov 8, 2020
1 parent 95754e4 commit c1494bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
auto ctx = basic_format_parse_context<Char>(str, {}, arg_id + 1);
auto f = formatter<T, Char>();
auto end = f.parse(ctx);
return {f, pos + (end - str.data()) + 1, ctx.next_arg_id()};
return {f, pos + static_cast<size_t>(end - str.data()) + 1, ctx.next_arg_id()};
}

// Compiles a non-empty format string and returns the compiled representation
Expand Down

0 comments on commit c1494bc

Please sign in to comment.