DateTimeController: Fix integer overflow
This commit is contained in:
parent
a5eac74fb5
commit
bf8dca202c
|
@ -67,7 +67,7 @@ namespace Pinetime {
|
||||||
return static_cast<Days>(daysSinceSunday);
|
return static_cast<Days>(daysSinceSunday);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t DayOfYear() const {
|
int DayOfYear() const {
|
||||||
return localTime.tm_yday + 1;
|
return localTime.tm_yday + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user