Skip to content

Commit 9f8340e

Browse files
committed
[libc++][chrono] Fixes build.
Changes in D134742 were not properly propagated to D136037 before landing.
1 parent 087dadf commit 9f8340e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__chrono/convert_to_tm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _LIBCPP_HIDE_FROM_ABI _Tm __convert_to_tm(const _ChronoT& __value) {
5353
__result.tm_mon = static_cast<unsigned>(__value) - 1;
5454
else if constexpr (same_as<_ChronoT, chrono::year>)
5555
__result.tm_year = static_cast<int>(__value) - 1900;
56-
else if constexpr (same_as<_ChronoCalendarTimePoint, chrono::weekday>)
56+
else if constexpr (same_as<_ChronoT, chrono::weekday>)
5757
__result.tm_wday = __value.c_encoding();
5858
else
5959
static_assert(sizeof(_ChronoT) == 0, "Add the missing type specialization");

0 commit comments

Comments
 (0)