mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-31 00:38:01 +00:00
Fixed compiler warning
This commit is contained in:
parent
4d279f0d12
commit
ca5745aa6d
@ -72,7 +72,7 @@ namespace Time
|
|||||||
int DaysInMonth[] = {31, result.Year % 4 == 0 ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
int DaysInMonth[] = {31, result.Year % 4 == 0 ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||||
for (result.Month = 0; result.Month < 12; result.Month++)
|
for (result.Month = 0; result.Month < 12; result.Month++)
|
||||||
{
|
{
|
||||||
if (Days < DaysInMonth[result.Month])
|
if (Days < static_cast<uint64_t>(DaysInMonth[result.Month]))
|
||||||
break;
|
break;
|
||||||
Days -= DaysInMonth[result.Month];
|
Days -= DaysInMonth[result.Month];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user