Fixed compiler warning

This commit is contained in:
Alex 2023-02-25 04:54:48 +02:00
parent 4d279f0d12
commit ca5745aa6d
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -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};
for (result.Month = 0; result.Month < 12; result.Month++)
{
if (Days < DaysInMonth[result.Month])
if (Days < static_cast<uint64_t>(DaysInMonth[result.Month]))
break;
Days -= DaysInMonth[result.Month];
}