Skip to content

Commit

Permalink
🐛 [std-format-test] Implicit signedness conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jgopel committed Oct 28, 2020
1 parent cb224ec commit 364475e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/std-format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ template <> struct std::formatter<S> {
char c = get_char();
if (!isdigit(c) || (++iter, get_char()) != '}')
throw format_error("invalid format");
width_arg_id = c - '0';
width_arg_id = static_cast<decltype(width_arg_id)>(c - '0');
ctx.check_arg_id(width_arg_id);
return ++iter;
}
Expand Down

0 comments on commit 364475e

Please sign in to comment.