Skip to content

Commit

Permalink
Explicitly cast int -> char to prevent conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu343726 committed Aug 16, 2017
1 parent 032c838 commit 6426aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ class ArgVisitor {
case Arg::BOOL:
return FMT_DISPATCH(visit_bool(arg.int_value != 0));
case Arg::CHAR:
return FMT_DISPATCH(visit_char(arg.int_value));
return FMT_DISPATCH(visit_char(static_cast<char>(arg.int_value)));
case Arg::DOUBLE:
return FMT_DISPATCH(visit_double(arg.double_value));
case Arg::LONG_DOUBLE:
Expand Down

0 comments on commit 6426aa4

Please sign in to comment.