Fix warnings
This commit is contained in:
parent
6952732b6c
commit
af83192d79
@ -480,17 +480,15 @@ struct chrono_formatter {
|
||||
std::chrono::duration<rep, Period>(val));
|
||||
}
|
||||
|
||||
Rep hour() const {
|
||||
return static_cast<Rep>(mod((s.count() / 3600), 24));
|
||||
}
|
||||
Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
|
||||
|
||||
Rep hour12() const {
|
||||
Rep hour = mod((s.count() / 3600), 12);
|
||||
Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
|
||||
return hour <= 0 ? 12 : hour;
|
||||
}
|
||||
|
||||
Rep minute() const { return mod((s.count() / 60), 60); }
|
||||
Rep second() const { return mod(s.count(), 60); }
|
||||
Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
|
||||
Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
|
||||
|
||||
std::tm time() const {
|
||||
auto time = std::tm();
|
||||
|
Loading…
Reference in New Issue
Block a user