diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 50d90c3cf769..8712c27c253b 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -2168,7 +2168,7 @@ struct formatter, 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;