Make sure the correct fmod overload is called

This commit is contained in:
Victor Zverovich 2022-07-13 12:33:57 -07:00
parent defa04e730
commit d82e1a108d

View File

@ -1777,7 +1777,7 @@ struct chrono_formatter {
format_to(std::back_inserter(buf), runtime("{:.{}f}"), format_to(std::back_inserter(buf), runtime("{:.{}f}"),
std::fmod(val * static_cast<rep>(Period::num) / std::fmod(val * static_cast<rep>(Period::num) /
static_cast<rep>(Period::den), static_cast<rep>(Period::den),
60), static_cast<rep>(60)),
num_fractional_digits); num_fractional_digits);
if (negative) *out++ = '-'; if (negative) *out++ = '-';
if (buf.size() < 2 || buf[1] == '.') *out++ = '0'; if (buf.size() < 2 || buf[1] == '.') *out++ = '0';