Skip to content

Commit bf8dca2

Browse files
committed
DateTimeController: Fix integer overflow
1 parent a5eac74 commit bf8dca2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/datetime/DateTimeController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace Pinetime {
6767
return static_cast<Days>(daysSinceSunday);
6868
}
6969

70-
uint8_t DayOfYear() const {
70+
int DayOfYear() const {
7171
return localTime.tm_yday + 1;
7272
}
7373

0 commit comments

Comments
 (0)