mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
Make sure the correct fmod overload is called
This commit is contained in:
parent
defa04e730
commit
d82e1a108d
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user