Fixed compiler warning

This commit is contained in:
Alex
2023-02-25 04:54:48 +02:00
parent 4d279f0d12
commit ca5745aa6d

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}; 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];
} }