Skip to content

Commit

Permalink
Accept wide chars as integers to prevent conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu343726 committed Aug 20, 2017
1 parent 032c838 commit 7a5c0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ArgConverter : public ArgVisitor<ArgConverter<T>, void> {
visit_any_int(value);
}

void visit_char(char value) {
void visit_char(int value) {
if (type_ != 's')
visit_any_int(value);
}
Expand Down

0 comments on commit 7a5c0de

Please sign in to comment.