mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-03 20:54:08 +00:00
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
5b8302079d
commit
73b7cee7fb
@ -2168,7 +2168,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
|
||||
|
||||
if (subsecs.count() < 0) {
|
||||
auto second = std::chrono::seconds(1);
|
||||
if (epoch.count() < (Duration::min() + second).count())
|
||||
if (epoch.count() < ((Duration::min)() + second).count())
|
||||
FMT_THROW(format_error("duration is too small"));
|
||||
subsecs += second;
|
||||
val -= second;
|
||||
|
Loading…
x
Reference in New Issue
Block a user