mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-12 15:39:09 +00:00
Fix a warning
This commit is contained in:
parent
af83192d79
commit
29ef7d31e4
@ -433,8 +433,8 @@ template <typename Rep, typename Period,
|
|||||||
FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
|
FMT_ENABLE_IF(std::is_floating_point<Rep>::value)>
|
||||||
inline std::chrono::duration<Rep, std::milli> get_milliseconds(
|
inline std::chrono::duration<Rep, std::milli> get_milliseconds(
|
||||||
std::chrono::duration<Rep, Period> d) {
|
std::chrono::duration<Rep, Period> d) {
|
||||||
return std::chrono::duration<Rep, std::milli>(
|
auto ms = mod(d.count() * Period::num / Period::den * 1000, 1000);
|
||||||
mod(d.count() * Period::num / Period::den * 1000, 1000));
|
return std::chrono::duration<Rep, std::milli>(static_cast<Rep>(ms));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Rep, typename OutputIt>
|
template <typename Rep, typename OutputIt>
|
||||||
|
Loading…
Reference in New Issue
Block a user