mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix warnings
This commit is contained in:
parent
d05d42751c
commit
92a44db11c
@ -548,14 +548,14 @@ struct chrono_formatter {
|
||||
void on_12_hour(numeric_system ns) {
|
||||
if (ns == numeric_system::standard) return write(hour12(), 2);
|
||||
auto time = tm();
|
||||
time.tm_hour = hour12();
|
||||
time.tm_hour = to_int(hour12());
|
||||
format_localized(time, "%OI");
|
||||
}
|
||||
|
||||
void on_minute(numeric_system ns) {
|
||||
if (ns == numeric_system::standard) return write(minute(), 2);
|
||||
auto time = tm();
|
||||
time.tm_min = minute();
|
||||
time.tm_min = to_int(minute());
|
||||
format_localized(time, "%OM");
|
||||
}
|
||||
|
||||
@ -570,7 +570,7 @@ struct chrono_formatter {
|
||||
return;
|
||||
}
|
||||
auto time = tm();
|
||||
time.tm_sec = second();
|
||||
time.tm_sec = to_int(second());
|
||||
format_localized(time, "%OS");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user