Skip to content

Commit bf0ccfd

Browse files
committed
fix(clock): fix freebsd compatibility
Recently introduced for ISO 8601 calendar compatibility. But, lib differences causing the explicit type to break freebsd. Signed-off-by: Austin Horstman <[email protected]>
1 parent 84ec25b commit bf0ccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/clock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const unsigned cldRowsInMonth(const year_month& ym, const weekday& firstdow) {
230230
auto cldGetWeekForLine(const year_month& ym, const weekday& firstdow, const unsigned line)
231231
-> const year_month_weekday {
232232
const unsigned idx = line - 2;
233-
const std::chrono::weekday_indexed indexed_first_day_of_week =
233+
const auto indexed_first_day_of_week =
234234
weekday{ym / 1} == firstdow ? firstdow[idx + 1] : firstdow[idx];
235235

236236
return ym / indexed_first_day_of_week;

0 commit comments

Comments
 (0)