Skip to content

Commit 265fec5

Browse files
Update src/displayapp/screens/WatchFaceTerminal.cpp
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
1 parent b4669be commit 265fec5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/displayapp/screens/WatchFaceTerminal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ void WatchFaceTerminal::Refresh() {
154154
auto time = date::make_time(newDateTime - dp);
155155
auto yearMonthDay = date::year_month_day(dp);
156156

157-
auto year = (int) yearMonthDay.year();
158-
auto month = static_cast<Pinetime::Controllers::DateTime::Months>((unsigned) yearMonthDay.month());
159-
auto day = (unsigned) yearMonthDay.day();
157+
auto year = static_cast<int>(yearMonthDay.year());
158+
auto month = static_cast<Pinetime::Controllers::DateTime::Months>(static_cast<unsigned>(yearMonthDay.month()));
159+
auto day = static_cast<unsigned>(yearMonthDay.day());
160160
auto dayOfWeek = static_cast<Pinetime::Controllers::DateTime::Days>(date::weekday(yearMonthDay).iso_encoding());
161161

162162
int hour = time.hours().count();

0 commit comments

Comments
 (0)