Fix parenthesis in time_isleap()

This commit is contained in:
2025-10-16 15:23:50 +02:00
parent 553b893a9c
commit 5158305fa6

View File

@ -69,7 +69,7 @@ void time_get(Time *time) {
}
bool time_isleap(uint32_t y) {
return ((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0));
return (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0));
}
const uint16_t days_before_month[12] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };