Skip to content

Commit 73b7cee

Browse files
authored
Fix for issue #3325 (#3326)
Signed-off-by: Vladislav Shchapov <[email protected]>
1 parent 5b83020 commit 73b7cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/chrono.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
21682168

21692169
if (subsecs.count() < 0) {
21702170
auto second = std::chrono::seconds(1);
2171-
if (epoch.count() < (Duration::min() + second).count())
2171+
if (epoch.count() < ((Duration::min)() + second).count())
21722172
FMT_THROW(format_error("duration is too small"));
21732173
subsecs += second;
21742174
val -= second;

0 commit comments

Comments
 (0)