Fix parenthesis in time_isleap()
This commit is contained in:
@ -69,7 +69,7 @@ void time_get(Time *time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool time_isleap(uint32_t y) {
|
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 };
|
const uint16_t days_before_month[12] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
|
||||||
|
|||||||
Reference in New Issue
Block a user