Fix warnings

This commit is contained in:
Victor Zverovich 2019-06-23 08:14:15 -07:00
parent 6952732b6c
commit af83192d79

View File

@ -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();