Skip to content

Commit

Permalink
Make sure the correct fmod overload is called
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jul 13, 2022
1 parent defa04e commit d82e1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ struct chrono_formatter {
format_to(std::back_inserter(buf), runtime("{:.{}f}"),
std::fmod(val * static_cast<rep>(Period::num) /
static_cast<rep>(Period::den),
60),
static_cast<rep>(60)),
num_fractional_digits);
if (negative) *out++ = '-';
if (buf.size() < 2 || buf[1] == '.') *out++ = '0';
Expand Down

0 comments on commit d82e1a1

Please sign in to comment.