mirror of
https://github.com/fmtlib/fmt.git
synced 2026-01-01 03:12:22 +08:00
Accept wide chars as integers to prevent conversion warning
This commit is contained in:
parent
6efbccb387
commit
c2201ce02e
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user