diff --git a/Core/Time.cpp b/Core/Time.cpp index dd505c0..3fc842c 100644 --- a/Core/Time.cpp +++ b/Core/Time.cpp @@ -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(DaysInMonth[result.Month])) break; Days -= DaysInMonth[result.Month]; }