Fix for issue #3325 (#3326)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2023-02-26 19:59:41 +05:00 committed by GitHub
parent 5b8302079d
commit 73b7cee7fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;