From 47782af9f5c3207e54788f9c7b172c7cf74ffba4 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 26 Feb 2023 16:54:52 +0500 Subject: [PATCH] Fix for issue #3325 Signed-off-by: Vladislav Shchapov --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;