Skip to content

Commit

Permalink
Fix for issue fmtlib#3325
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus committed Feb 26, 2023
1 parent 5b83020 commit 47782af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47782af

Please sign in to comment.